CVE-2004-2540

CVE-2004-2540 is a medium-severity vulnerability in Sun Jdk with a CVSS 2.0 base score of 5.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.

Key facts

Description

readObject in (1) Java Runtime Environment (JRE) and (2) Software Development Kit (SDK) 1.4.0 through 1.4.2_05 allows remote attackers to cause a denial of service (JVM unresponsive) via crafted serialized data.

Frequently asked questions

What is CVE-2004-2540?
readObject in (1) Java Runtime Environment (JRE) and (2) Software Development Kit (SDK) 1.4.0 through 1.4.2_05 allows remote attackers to cause a denial of service (JVM unresponsive) via crafted serialized data.
How severe is CVE-2004-2540?
CVE-2004-2540 has a CVSS 2.0 base score of 5.0, rated medium severity.
Is CVE-2004-2540 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (83rd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2004-2540?
CVE-2004-2540 primarily affects Sun Jdk. In total, 84 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2004-2540?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2004-2540 published?
CVE-2004-2540 was published on 2004-12-31 and last updated on 2026-06-16.

References

Affected products (84)

More vulnerabilities in Sun Jdk

All CVEs affecting Sun Jdk →