VDB

CVE-2021-39152

CVE-2021-39152 PUBLISHED CVSS 8.5 HIGH

A Server-Side Forgery Request vulnerability in XStream via HashMap unmarshaling

Reported by github_m · Published August 23, 2021

xstream is fixed in 1.4.18 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
com.thoughtworks.xstream:xstreamMaven Central1.4.18
hadoop-fips-3.3.6Chainguard3.3.6-r21
xstreamAmazon Linux1.3.1-16.amzn2
xstreamxstream1.4.18

Risk scores

CVSS 3.1
8.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
x-streamxstream< 1.4.18
chainguardhadoop-fips-3.3.60
amazon:2xstream0
Mavencom.thoughtworks.xstream:xstream0
x-streamxstream0
amazon:2xstream-javadoc0

Timeline

  • Aug 23, 2021 CVE Published
  • Aug 24, 2021 EPSS Score (30 in total, the first dated here)
  • Feb 8, 2024 PoC Published
  • Feb 14, 2026 VulnCheck KEV Exploitation
  • Mar 17, 2026 Security Advisory (12 in total, the first dated here)
  • Jul 24, 2026 Coalition ESS Score
  • Oct 5, 2026 Distribution Patch (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-39152
vulnetix vdb fixes CVE-2021-39152

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-39152/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›