# CVE-2021-21345: XStream is vulnerable to a Remote Command Execution attack

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, 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-21345, DEBIAN-CVE-2021-21345, CGA-6ccf-qffv-g399, CGA-7w3q-4jr7-9j6j, GHSA-hwpc-8xqv-jvj4, BIT-activemq-2021-21345, CGA-q847-wp3f-m7v6, CGA-v8hp-pj58-9fwj
- Record: https://cvemate.com/vulnerability/CVE-2021-21345 · JSON: https://cvemate.com/vulnerability/CVE-2021-21345/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 which may allow a remote attacker who has sufficient rights to execute commands of the host only by manipulating the processed input stream. 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: 9.9 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 72.324%, percentile 99.446%, 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 22)

- 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 peoplesoft\_enterprise\_peopletools: 8.58 \| 8.59
- 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

## References (first 20 of 29)

- <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-hwpc-8xqv-jvj4>
- <https://x-stream.github.io/CVE-2021-21345.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://www.oracle.com/security-alerts/cpuApr2021.html>
- <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-21345>
- <https://ubuntu.com/security/notices/USN-4943-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-21345>
- <https://ubuntu.com/security/notices/USN-6978-1>

---

Data as of 2026-12-05T04:47:06.877Z. 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
