# XStream is vulnerable to a Remote Command Execution attack

Advisory record · `GHSA-hwpc-8xqv-jvj4`

- **Identifiers:** `GHSA-hwpc-8xqv-jvj4` · `BIT-activemq-2021-21345` · `CVE-2021-21345`
- **State:** Confirmed
- **Severity:** CVSS 5.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html) · [CWE-94](https://cwe.mitre.org/data/definitions/94.html) · [CWE-502](https://cwe.mitre.org/data/definitions/502.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md) · [Code injection](https://agentprime.io/advisories/tag/code-injection.md) · [Insecure deserialization](https://agentprime.io/advisories/tag/deserialization.md)
- **Published:** 22 Mar 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Mar 2021, 23:28 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `com.thoughtworks.xstream:xstream` (Maven): affected `<1.4.16`; fixed in `1.4.16`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> XStream (com.thoughtworks.xstream:xstream) versions before 1.4.16 are vulnerable to remote command execution. A remote attacker with sufficient rights may be able to run commands on the host by manipulating the input stream that XStream processes. Upgrade to version 1.4.16 or later; users who configured XStream's security framework with a whitelist limited to the required types are not affected.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.72, the 99th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:20 UTC: First seen by agentprime
- 31 Oct 2026, 14:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hwpc-8xqv-jvj4)

## Sources

- [GitHub Advisory Database: GHSA-hwpc-8xqv-jvj4](https://github.com/advisories/GHSA-hwpc-8xqv-jvj4)
- [OSV: GHSA-hwpc-8xqv-jvj4](https://osv.dev/vulnerability/GHSA-hwpc-8xqv-jvj4)
- <https://github.com/x-stream/xstream/security/advisories/GHSA-hwpc-8xqv-jvj4>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21345>
- <https://x-stream.github.io/security.html#workaround>
- <https://x-stream.github.io/CVE-2021-21345.html>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://www.oracle.com/security-alerts/cpuApr2021.html>
- <https://www.oracle.com//security-alerts/cpujul2021.html>
- <https://www.debian.org/security/2021/dsa-5004>
- <https://security.netapp.com/advisory/ntap-20210430-0002>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hwpc-8xqv-jvj4>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hwpc-8xqv-jvj4/>. Everything for agents: <https://agentprime.io/llms.txt>.
