CVE-2021-21343
XStream is vulnerable to an Arbitrary File Deletion on the local host when unmarshalling as long as the executing process has sufficient rights
- State
- Published
- Severity
- 5.3 Medium
- Published
- Mar 22, 2021
- Updated
- Oct 7, 2026
- Reserved
- Dec 22, 2020
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.3 Medium | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | GitHub_M |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
xstreamx-stream |
|
References
- 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://x-stream.github.io/CVE-2021-21343.html
- [debian-lts-announce] 20210403 [SECURITY] [DLA 2616-1] libxstream-java security updatemailing-list
- [jmeter-dev] 20210406 [GitHub] [jmeter] sseide opened a new pull request #655: update x-stream to 1.4.16 (from 1.4.15)mailing-list
- [activemq-users] 20210427 Release date for ActiveMQ v5.16.2 to fix CVEsmailing-list
- https://security.netapp.com/advisory/ntap-20210430-0002/
- https://www.oracle.com//security-alerts/cpujul2021.html
- FEDORA-2021-fbad11014avendor-advisory
- FEDORA-2021-d894ca87dcvendor-advisory
- https://www.oracle.com/security-alerts/cpuoct2021.html
- FEDORA-2021-5e376c0ed9vendor-advisory
- DSA-5004vendor-advisory
- https://www.oracle.com/security-alerts/cpujan2022.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.