Vulnerability · Published Aug 23, 2021 · Assigned by GitHub_M
CVE-2021-39152A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling
High 8.5
In plain English
A high-severity unsafe deserialization in xstream from x-stream. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 11.4% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxstream-java | 1.4.18-1 | DEBIAN-CVE-2021-39152 |
| Debian:13 | libxstream-java | 1.4.18-1 | DEBIAN-CVE-2021-39152 |
| Debian:14 | libxstream-java | 1.4.18-1 | DEBIAN-CVE-2021-39152 |
| Maven | com.thoughtworks.xstream:xstream | 1.4.18 | GHSA-xw4p-crpj-vjx2 |
| Ubuntu:22.04:LTS | libxstream-java | 1.4.18-2ubuntu0.1 | USN-5946-1 |
Affected products (as reported)
Weakness: CWE-502, CWE-918 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-xw4p-crpj-vjx2 x_refsource_CONFIRM
- https://x-stream.github.io/CVE-2021-39152.html x_refsource_MISC
- [debian-lts-announce] 20210929 [SECURITY] [DLA 2769-1] libxstream-java security update mailing-list, x_refsource_MLIST
- FEDORA-2021-fbad11014a vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-5e376c0ed9 vendor-advisory, x_refsource_FEDORA
- DSA-5004 vendor-advisory, x_refsource_DEBIAN
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210923-0003/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC