CVE-2021-21343
Reported by github_m · Published March 22, 2021
xstream is fixed in 1.4.16 (Maven Central)
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in the deletion of a file on the local host. 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, you will have to use at least version 1.4.16.
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.16 |
| xstream | Amazon Linux | 1.3.1-13.amzn2 |
| xstream-javadoc | Amazon Linux | 1.3.1-13.amzn2 |
| libxstream-java | Ubuntu:Pro:14.04:LTS | 1.4.7-1ubuntu0.1+esm2 |
| xstream | xstream | 1.4.16 |
| libxstream-java | Ubuntu:18.04:LTS | 1.4.11.1-1~18.04.2 |
| activemq | apache | 5.15.14 |
| jmeter | apache | 5.5 |
| activemq | Bitnami | 5.16.1, 5.16.0, 5.15.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| x-stream | xstream | < 1.4.16 |
| x-stream | xstream | 0 |
Timeline
- Mar 22, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 28, 2021 PoC Published (20 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
- Mar 7, 2026 Security Advisory (17 in total, the first dated here)
- Aug 26, 2026 Coalition ESS Score
- Oct 7, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21343
vulnetix vdb fixes CVE-2021-21343
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-21343/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- [debian-lts-announce] 20210403 [SECURITY] [DLA 2616-1] libxstream-java security update mailing-listx_refsource_MLIST
- [jmeter-dev] 20210406 [GitHub] [jmeter] sseide opened a new pull request #655: update x-stream to 1.4.16 (from 1.4.15) mailing-listx_refsource_MLIST
- [activemq-users] 20210427 Release date for ActiveMQ v5.16.2 to fix CVEs mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_MISC
- FEDORA-2021-fbad11014a vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-d894ca87dc vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- FEDORA-2021-5e376c0ed9 vendor-advisoryx_refsource_FEDORA
- DSA-5004 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC