CVE-2021-21348
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 which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return. 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 |
| activemq | Bitnami | 5.16.1, 5.16.0, 5.15.14 |
| jmeter | apache | 5.5 |
| libxstream-java | Ubuntu:Pro:14.04:LTS | 1.4.7-1ubuntu0.1+esm2 |
| activemq | apache | 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
- Mar 23, 2021 PoC Published (21 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 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)
- Jun 17, 2026 CVE Updated
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21348
vulnetix vdb fixes CVE-2021-21348
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-21348/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