CVE-2021-29505
XStream is vulnerable to a Remote Command Execution attack
Reported by github_m · Published May 28, 2021
xstream is fixed in 1.4.17 (Maven Central)
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
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.17 |
| xstream-javadoc | Amazon Linux | 1.3.1-14.amzn2 |
| xstream | Amazon Linux | 1.3.1-14.amzn2 |
| xstream | xstream | 1.4.17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| x-stream | xstream | < 1.4.17 |
| Maven | com.thoughtworks.xstream:xstream | 0 |
| amazon:2 | xstream-javadoc | 0 |
| amazon:2 | xstream | 0 |
| x-stream | xstream | 0 |
Timeline
- May 18, 2021 CVE Published
- May 29, 2021 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Mar 17, 2026 Security Advisory (33 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (29 in total, the first dated here)
- Aug 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-29505
vulnetix vdb fixes CVE-2021-29505
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-29505/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc x_refsource_CONFIRM
- https://github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f x_refsource_MISC
- https://github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227 x_refsource_MISC
- https://lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%3E x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2021/07/msg00004.html x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210708-0007 x_refsource_MISC
- https://www.debian.org/security/2021/dsa-5004 x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://x-stream.github.io/CVE-2021-29505.html x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-29505 advisory
- https://github.com/advisories/GHSA-7chv-rrw6-w6fc advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7 url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP url
…and 6 more