CVE-2021-39152A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling
- 8.5HighCVSS base score
- 11.4%Exploitation in 30 daysEPSS · top 3.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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 request data from internal resources that are not publicly available only by manipulating the processed input stream with a Java runtime version 14 to 8. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the [Security Framework](https://x-stream.github.io/security.html#framework), you will have to use at least version 1.4.18.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- XStream <1.4.18 - Server-Side Request Forgery (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-39152.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
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.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 11.4% · top 3.9% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
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-xw4p-crpj-vjx2 (opens in a new tab)
References
References11
- https://github.com/x-stream/xstream/security/advisories/GHSA-xw4p-crpj-vjx2 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://x-stream.github.io/CVE-2021-39152.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-1941 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xw4p-crpj-vjx2 (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-39152)Record last updated .