CVE-2021-21342 XStream
| Affected software | XStream |
|---|---|
| Severity | 9.1 Critical CVSS 3.1 3 scores |
| Fixed in | 1.4.16 |
| Weakness | Deserialization of untrusted data (CWE-502) |
| Published | 23 Mar 2021 |
| Updated | 7 Oct 2026 |
Description
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 a server-side forgery request. 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.
CWE-918 · Server-side request forgery
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 5 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 50% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99% of all scored CVEs.
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full
- Action available security rule
- Review human Researcher
- Record active
| Decided by | Manual classification of this CVE in the legacy dataset |
|---|---|
| Finding | A manual classification set this CVE's status to Protected by Waratek. |
How to mitigate CVE-2021-21342
Upgrade XStream to 1.4.16 or later. Until you can, Waratek RASP blocks exploitation with a security rule that blocks this kind of attack. It runs inside the Java application, with no code changes.
CVSS
9.1 CRITICAL
v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3 metrics
CVSS
9.1 CRITICAL v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
NVD | Primary | published |
| CVSS 3.1 | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
security-advisories@github.com | Secondary | |
| CVSS 2.0 | 5.8 | none | AV:N/AC:M/Au:N/C:P/I:P/A:N |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
com.thoughtworks.xstream:xstream |
0 | 1.4.16 |
unbounded |
Products and versions
16 products, 39 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | activemq | generic | < 5.15.14 · 5.16.0 · 5.16.1 |
| nvd | apache | jmeter | generic | < 5.5 |
| osv | com.thoughtworks.xstream | xstream | generic | < 1.4.16 |
| nvd | debian | debian linux | generic | 9.0 · 10.0 · 11.0 |
| nvd | fedoraproject | fedora | generic | 33 · 34 · 35 |
| nvd | netapp | oncommand insight | generic | any version |
| nvd | oracle | banking enterprise default management | generic | 2.10.0 · 2.12.0 |
| nvd | oracle | banking platform | generic | 2.4.0 · 2.7.1 · 2.9.0 · 2.12.0 |
| nvd | oracle | banking virtual account management | generic | 14.2.0 · 14.3.0 · 14.5.0 |
| nvd | oracle | business activity monitoring | generic | 11.1.1.9.0 · 12.2.1.3.0 · 12.2.1.4.0 |
| nvd | oracle | communications brm - elastic charging engine | generic | 12.0.0.3 |
| nvd | oracle | communications policy management | generic | 12.5.0 |
| nvd | oracle | communications unified inventory management | generic | 7.3.2 · 7.3.4 · 7.3.5 · 7.4.0 · 7.4.1 |
| nvd | oracle | retail xstore point of service | generic | 16.0.6 · 17.0.4 · 18.0.3 · 19.0.2 |
| nvd | oracle | webcenter portal | generic | 11.1.1.9.0 · 12.2.1.3.0 · 12.2.1.4.0 |
| nvd | xstream | xstream | generic | < 1.4.16 |
References
Timeline
Timeline
| Published | 2021-03-23 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-10-07 | NVD's own last-modified date for this record. |