Home / Sun / Jdk / CVE-2004-2540
CVE-2004-2540: is it exploited, and which versions of Sun Jdk are affected and fixed?
CVE-2004-2540 is a vulnerability in Sun Jdk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 21:09 UTC). Affected: jdk 1.4, jdk 1.4.0_01, jdk 1.4.0_02 and 22 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.0, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 21:09 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:54 UTC.
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.
From the CVE record by mitre, last updated August 8, 2024, 01:29 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sun | jdk | 1.4 | application |
| sun | jdk | 1.4.0_01 | application |
| sun | jdk | 1.4.0_02 | application |
| sun | jdk | 1.4.0_03 | application |
| sun | jdk | 1.4.0_4 | application |
| sun | jdk | 1.4.1 | application |
| sun | jdk | 1.4.1_01 | application |
| sun | jdk | 1.4.1_02 | application |
| sun | jdk | 1.4.1_03 | application |
| sun | jdk | 1.4.2 | application |
| sun | jdk | 1.4.2_01 | application |
| sun | jdk | 1.4.2_02 | application |
| sun | jdk | 1.4.2_03 | application |
| sun | jdk | 1.4.2_04 | application |
| sun | jdk | 1.4.2_05 | application |
| sun | jre | 1.4 | application |
| sun | jre | 1.4.0_01 | application |
| sun | jre | 1.4.0_02 | application |
| sun | jre | 1.4.0_03 | application |
| sun | jre | 1.4.0_04 | application |
| sun | jre | 1.4.1 | application |
| sun | jre | 1.4.1_01 | application |
| sun | jre | 1.4.1_02 | application |
| sun | jre | 1.4.1_07 | application |
| sun | jre | 1.4.2 | application |
NVD analysis (status Modified), last modified June 16, 2026, 22:09 UTC.
How severe is CVE-2004-2540?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2004-2540 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.51% probability of exploitation activity in the next 30 days, percentile 85.3 (FIRST EPSS, scores of December 3, 2026)
Where are the vendor advisories and references?
- 20050407 MacOSX Java Runtime Environment Remote Denial-of-Service (DoS) Vulnerability mailing-list, x_refsource_BUGTRAQ
- 13271 third-party-advisory, x_refsource_SECUNIA
- 57707 vendor-advisory, x_refsource_SUNALERT
- jre-sdk-readobject-dos(20027) vdb-entry, x_refsource_XF
When was it published, and where is the official record?
- Reserved
- November 16, 2005
- Published
- November 16, 2005, 07:37 UTC
- CVE record updated
- August 8, 2024, 01:29 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:09 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:54 UTC; KEV December 3, 2026, 21:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Jdk?
- Oct 16, 2013CVE-2013-5852 Oracle Jre: n/a
- Oct 16, 2013CVE-2013-5850 Oracle Jre: n/a
- Oct 16, 2013CVE-2013-5849 Oracle Jre: n/a
- Oct 16, 2013CVE-2013-5840 Oracle Jdk: n/a
- Oct 16, 2013CVE-2013-5832 Oracle Jdk: n/a
- Oct 16, 2013CVE-2013-5831 Oracle Jdk: n/a
- Oct 16, 2013CVE-2013-5825 Oracle Jdk: n/a
- Oct 16, 2013CVE-2013-5824 Oracle Jdk: n/a
Questions about CVE-2004-2540
Is CVE-2004-2540 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 21:09 UTC. FIRST's EPSS gives it a 2.51% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Sun Jdk are affected by CVE-2004-2540?
jdk 1.4, jdk 1.4.0_01, jdk 1.4.0_02, jdk 1.4.0_03, jdk 1.4.0_4, jdk 1.4.1 and 19 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2004-2540?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2004-2540?
Medium (5.0, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2004-2540?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.