CVE-2021-39144
XStream is vulnerable to a Remote Command Execution attack
Also known as GHSA-j9h8-phrw-h4fh
Mitigation
- Upgrade com.thoughtworks.xstream:xstream to 1.4.18 or later.
Who should check
- Projects that depend on Maven package com.thoughtworks.xstream:xstream (< 1.4.18)
- Anyone running x-stream xstream < 1.4.18
Vulnerability facts
- Affected
- com.thoughtworks.xstream:xstream < 1.4.18
- Fixed in
- 1.4.18
- Exploited in the wild
- Yes: in CISA KEV since 2023-03-10; federal due date 2023-03-31
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 8.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 98.12% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-94, CWE-502
- Modified
Description
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker 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. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven com.thoughtworks.xstream:xstream | < 1.4.18 | 1.4.18 | osv |
| x-stream xstream | < 1.4.18 | — | cvelist |
Timeline
- 2021-08-23 Published
- 2023-03-10 Added to CISA KEV (exploited in the wild)
- 2023-03-31 CISA remediation due date for US federal agencies
- 2026-07-08 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-39144. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-39144.md Affected: com.thoughtworks.xstream:xstream < 1.4.18 Fixed in: 1.4.18 Steps: 1. Search this machine and project for com.thoughtworks.xstream:xstream (Maven), x-stream xstream: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fh
- 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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/
- https://www.debian.org/security/2021/dsa-5004
- https://nvd.nist.gov/vuln/detail/CVE-2021-39144
Patches
Exploits and PoCs
Other
- https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html
- https://security.netapp.com/advisory/ntap-20210923-0003/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39144
- https://security.netapp.com/advisory/ntap-20210923-0003
- 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
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- https://github.com/x-stream/xstream
FAQ
Is CVE-2021-39144 being exploited?
Yes. CISA lists CVE-2021-39144 in its Known Exploited Vulnerabilities catalog since 2023-03-10, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 98.12% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-39144?
High: CVSS 8.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2021-39144?
com.thoughtworks.xstream:xstream < 1.4.18.
Is there a fix for CVE-2021-39144?
Yes. Fixed in 1.4.18. Upgrade com.thoughtworks.xstream:xstream to 1.4.18 or later.
How do I check if I'm affected by CVE-2021-39144?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.