CVE-2021-39139XStream is vulnerable to an Arbitrary Code Execution attack
- 8.5HighCVSS base score
- 4.5%Exploitation in 30 daysEPSS · top 8.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.5% · top 8.2% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.5.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavencom.thoughtworks.xstream:xstreamGHSA-64xx-cq4q-mf44 (opens in a new tab)
References
References11
- https://github.com/x-stream/xstream/security/advisories/GHSA-64xx-cq4q-mf44 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://x-stream.github.io/CVE-2021-39139.html (opens in a new tab)x_refsource_MISCx_transferred
- [debian-lts-announce] 20210929 [SECURITY] [DLA 2769-1] libxstream-java security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2021-fbad11014a (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-d894ca87dc (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-5e376c0ed9 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-5004 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://www.oracle.com/security-alerts/cpujan2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20210923-0003/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujul2022.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-1590 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-64xx-cq4q-mf44 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-39139)Record last updated .