VDB

CVE-2021-39146

CVE-2021-39146 PUBLISHED CVSS 8.5 HIGH

XStream is vulnerable to an Arbitrary Code Execution attack

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 load and execute arbitrary code from a remote host only by manipulating the processed input stream. 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.

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
xstreamAmazon Linux1.3.1-16.amzn2
xstream-javadocAmazon 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
amazon:2xstream0
Mavencom.thoughtworks.xstream:xstream0
amazon:2xstream-javadoc0
x-streamxstream0

Timeline

  • Aug 23, 2021 CVE Published
  • Aug 24, 2021 EPSS Score (30 in total, the first dated here)
  • Feb 8, 2024 PoC Published
  • 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-39146
vulnetix vdb fixes CVE-2021-39146

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-39146/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 ›