CVE-2021-39152 A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling
Remote attackers can access internal resources via SSRF in XStream when using default security settings on Java 8-14.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-39152?
CVE-2021-39152 is a high-severity server-side request forgery vulnerability in Debian Debian Linux, published on 23 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Which versions are affected by CVE-2021-39152?
2 open source packages ship an affected version, including com.thoughtworks.xstream:xstream. It affects 15 products.
| Package | Affected | Fixed in |
|---|---|---|
com.thoughtworks.xstream:xstream Maven | All versions | 1.4.18 |
com.thoughtworks.xstream:xstream Maven | All versions | 1.4.18 |
Products include Debian Debian Linux, Fedoraproject Fedora, Netapp Snapmanager, Oracle Business Activity Monitoring, Oracle Commerce Guided Search, Oracle Communications Billing and Revenue Management Elastic Charging Engine and 9 more.
How do I fix CVE-2021-39152?
Upgrade com.thoughtworks.xstream:xstream to 1.4.18 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2021-39152 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-39152 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2021-39152, GHSA-xw4p-crpj-vjx2, UBUNTU-CVE-2021-39152.