CVE-2021-21343
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 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.
Description as published by the source, in English.
Key facts
- Published
- 2021-03-23
- Last modified
- 2026-10-07
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
46.7 %
higher than 99 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Apache | Activemq | < 5.15.14 | Affected |
| Apache | Activemq | 5.16.0 | Affected |
| Apache | Activemq | 5.16.1 | Affected |
| Apache | Jmeter | < 5.5 | Affected |
| Debian | Debian Linux | 10.0 | Affected |
| Debian | Debian Linux | 11.0 | Affected |
| Debian | Debian Linux | 9.0 | Affected |
| Fedoraproject | Fedora | 33 | Affected |
| Fedoraproject | Fedora | 34 | Affected |
| Fedoraproject | Fedora | 35 | Affected |
| Netapp | Oncommand Insight | all versions listed | Affected |
| Oracle | Banking Enterprise Default Management | 2.10.0 | Affected |
| Oracle | Banking Enterprise Default Management | 2.12.0 | Affected |
| Oracle | Banking Platform | 2.12.0 | Affected |
| Oracle | Banking Platform | 2.4.0 | Affected |
| Oracle | Banking Platform | 2.7.1 | Affected |
| Oracle | Banking Platform | 2.9.0 | Affected |
| Oracle | Banking Virtual Account Management | 14.2.0 | Affected |
| Oracle | Banking Virtual Account Management | 14.3.0 | Affected |
| Oracle | Banking Virtual Account Management | 14.5.0 | Affected |
| Oracle | Business Activity Monitoring | 11.1.1.9.0 | Affected |
| Oracle | Business Activity Monitoring | 12.2.1.3.0 | Affected |
| Oracle | Business Activity Monitoring | 12.2.1.4.0 | Affected |
| Oracle | Communications Billing And Revenue Management Elastic Charging Engine | 12.0.0.3.0 | Affected |
| Oracle | Communications Policy Management | 12.5.0 | Affected |
| Oracle | Communications Unified Inventory Management | 7.3.2 | Affected |
| Oracle | Communications Unified Inventory Management | 7.3.4 | Affected |
| Oracle | Communications Unified Inventory Management | 7.3.5 | Affected |
| Oracle | Communications Unified Inventory Management | 7.4.0 | Affected |
| Oracle | Communications Unified Inventory Management | 7.4.1 | Affected |
| Oracle | Retail Xstore Point Of Service | 16.0.6 | Affected |
| Oracle | Retail Xstore Point Of Service | 17.0.4 | Affected |
| Oracle | Retail Xstore Point Of Service | 18.0.3 | Affected |
| Oracle | Retail Xstore Point Of Service | 19.0.2 | Affected |
| Oracle | Webcenter Portal | 11.1.1.9.0 | Affected |
| Oracle | Webcenter Portal | 12.2.1.3.0 | Affected |
| Oracle | Webcenter Portal | 12.2.1.4.0 | Affected |
| Xstream | Xstream | < 1.4.16 | Affected |
Weakness type
-
CWE-502: Deserialization of Untrusted Data
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
-
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027: Obfuscated Files or Information
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
References
- http://x-stream.github.io/changes.html#1.4.16
- https://github.com/x-stream/xstream/security/advisories/GHSA-74cv-f58x-f9wf
- https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23…
- https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6…
- https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/…
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/…
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/…
- https://security.netapp.com/advisory/ntap-20210430-0002/
- https://www.debian.org/security/2021/dsa-5004
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://x-stream.github.io/CVE-2021-21343.html
- https://x-stream.github.io/security.html#workaround
- http://x-stream.github.io/changes.html#1.4.16
- https://github.com/x-stream/xstream/security/advisories/GHSA-74cv-f58x-f9wf
- https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23…
- https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6…
- https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.