CVE-2021-39151
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| com.thoughtworks.xstream:xstream | Maven Central | 1.4.18 |
| xstream-javadoc | Amazon Linux | 1.3.1-16.amzn2 |
| xstream | xstream | 1.4.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| x-stream | xstream | < 1.4.18 |
| Maven | com.thoughtworks.xstream:xstream | 0 |
| amazon:2 | xstream-javadoc | 0 |
| x-stream | xstream | 0 |
| amazon:2 | xstream | 0 |
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)
- Jun 17, 2026 CVE Updated
- 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-39151
vulnetix vdb fixes CVE-2021-39151
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-39151/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- [debian-lts-announce] 20210929 [SECURITY] [DLA 2769-1] libxstream-java security update mailing-listx_refsource_MLIST
- FEDORA-2021-fbad11014a vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-5e376c0ed9 vendor-advisoryx_refsource_FEDORA
- DSA-5004 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-39151 advisory