XStream is vulnerable to a Remote Command Execution attack
Published 25 Aug 2021 · Updated 8 Jul 2026
Is your project on an affected com.thoughtworks.xstream:xstream?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.4.18
- Fixed in
- 1.4.18
mvn versions:use-dep-version -Dincludes=com.thoughtworks.xstream:xstream -DdepVersion=1.4.18 -DforceVersion=trueDetails
Impact
The 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.
Patches
XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.
Workarounds
See workarounds for the different versions covering all CVEs.
References
See full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for CVE-2021-39144.
Credits
Ceclin and YXXX from the Tencent Security Response Center found and reported the issue to XStream and provided the required information to reproduce it.
For more information
If you have any questions or comments about this advisory:
- Open an issue in XStream
- Email us at XStream Google Group
Is GHSA-j9h8-phrw-h4fh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.thoughtworks.xstream:xstream, and gives you the command that fixes it.
More advisories for com.thoughtworks.xstream:xstream
- HighCVE-2024-47072XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream · 7 Nov 2024
- HighCVE-2022-40151XStream can cause a Denial of Service by injecting deeply nested objects raising a stack overflow · 30 Dec 2022
- HighCVE-2022-41966XStream can cause Denial of Service via stack overflow · 29 Dec 2022
- HighCVE-2021-43859Denial of Service by injecting highly recursive collections or maps in XStream · 1 Feb 2022
- HighCVE-2021-39139XStream is vulnerable to an Arbitrary Code Execution attack · 25 Aug 2021
- MediumCVE-2021-39140XStream can cause a Denial of Service · 25 Aug 2021
References
- Linkgithub.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fh
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-39144
- Linkx-stream.github.io/CVE-2021-39144.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
- Linkwww.oracle.com/security-alerts/cpujan2022.html
- Linkwww.oracle.com/security-alerts/cpuapr2022.html
- Linkwww.debian.org/security/2021/dsa-5004
- Linkwww.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39144
- Linksecurity.netapp.com/advisory/ntap-20210923-0003
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
- Linklists.debian.org/debian-lts-announce/2021/09/msg00017.html
- Packagegithub.com/x-stream/xstream
- Linkpacketstormsecurity.com/files/169859/VMware-NSX-Manager-XStream-Unauthenticated-Remote-Code-Execution.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.