# 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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-03-22 · Modified: 2026-10-07
- Aliases: UBUNTU-CVE-2021-21343, DEBIAN-CVE-2021-21343, CGA-29vf-8x2p-wqvh, CGA-m5p2-4v2j-cjr9, GHSA-74cv-f58x-f9wf, BIT-activemq-2021-21343, CGA-wvch-rjqp-ch8q, CGA-xc37-wqm7-xx39
- Record: https://cvemate.com/vulnerability/CVE-2021-21343 · JSON: https://cvemate.com/vulnerability/CVE-2021-21343/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 46.666%, percentile 98.852%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 21)

- apache activemq: \< 5.15.14 \| 5.16.0 \| 5.16.1
- apache jmeter: \< 5.5
- chainguard hadoop-fips-3.3.6 (Chainguard): All versions (No fix recorded)
- chainguard hadoop-fips-3.4.2 (Chainguard): All versions (No fix recorded)
- debian libxstream-java (Debian): \< 1.4.15-2
- ubuntu libxstream-java (Ubuntu): \< 1.4.7-1ubuntu0.1+esm2 \| \< 1.4.8-1ubuntu0.1+esm3 \| \< 1.4.11.1-1~18.04.2 \| \< 1.4.11.1-1ubuntu0.2
- debian debian\_linux: 9.0 \| 10.0 \| 11.0
- fedoraproject fedora: 33 \| 34 \| 35
- com.thoughtworks.xstream xstream (Maven): \< 1.4.16
- netapp oncommand\_insight: na
- oracle banking\_enterprise\_default\_management: 2.10.0 \| 2.12.0
- oracle banking\_platform: 2.4.0 \| 2.7.1 \| 2.9.0 \| 2.12.0
- oracle banking\_virtual\_account\_management: 14.2.0 \| 14.3.0 \| 14.5.0
- oracle business\_activity\_monitoring: 11.1.1.9.0 \| 12.2.1.3.0 \| 12.2.1.4.0
- oracle communications\_billing\_and\_revenue\_management\_elastic\_charging\_engine: 12.0.0.3.0
- oracle communications\_policy\_management: 12.5.0
- oracle communications\_unified\_inventory\_management: 7.3.2 \| 7.3.4 \| 7.3.5 \| 7.4.0 \| 7.4.1
- oracle retail\_xstore\_point\_of\_service: 16.0.6 \| 17.0.4 \| 18.0.3 \| 19.0.2
- oracle webcenter\_portal: 11.1.1.9.0 \| 12.2.1.3.0 \| 12.2.1.4.0
- x-stream xstream: \< 1.4.16

## References (first 20 of 28)

- <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>
- <https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html>
- <https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.org%3E>
- <https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apache.org%3E>
- <https://security.netapp.com/advisory/ntap-20210430-0002/>
- <https://www.oracle.com//security-alerts/cpujul2021.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/>
- <https://www.debian.org/security/2021/dsa-5004>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://ubuntu.com/security/CVE-2021-21343>
- <https://ubuntu.com/security/notices/USN-4943-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-21343>
- <https://ubuntu.com/security/notices/USN-6978-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-21343>

---

Data as of 2026-12-05T06:04:33.723Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
