CVE-2021-29505
XStream is vulnerable to a Remote Command Execution attack
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
XStream is vulnerable to a Remote Command Execution attack
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
CVE-2021-29505- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-94, CWE-502
- Updated
- 2026-11-02
EUVDEUVD-2021-0996
7.5
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
EUVD-2021-0996- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7chv-rrw6-w6fc
7.5
XStream is vulnerable to a Remote Command Execution attack
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
If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.17.
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-29505.
Credits
V3geB1rd, white hat hacker from 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
- Record
GHSA-7chv-rrw6-w6fc- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-74, CWE-94, CWE-502
- Updated
- 2026-11-02
NVD
7.5
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
CVE-2021-29505- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.5 Medium
AV:N/AC:L/Au:S/C:P/I:P/A:P - Weakness
- CWE-94, CWE-502
- Updated
- 2026-11-02
OSV
8.8
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
CVE-2021-29505- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-29505
8.8
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
DEBIAN-CVE-2021-29505- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSVGHSA-7chv-rrw6-w6fc
7.5
XStream is vulnerable to a Remote Command Execution attack
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
If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.17.
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-29505.
Credits
V3geB1rd, white hat hacker from 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
- Record
GHSA-7chv-rrw6-w6fc- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-74, CWE-94
- Updated
- 2026-11-02
OSVOESA-2021-1208
9.8
xstream security update
XStream is a simple library to serialize objects to XML and back again. A high level facade is supplied that simplifies common use cases. Custom objects can be serialized without need for specifying mappings. Speed and low memory footprint are a crucial part of the design, making it suitable for large object graphs or systems with high message throughput. No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and more compact than native Java serialization. XStream serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor. Duplicate references encountered in the object-model will be maintained. Supports circular references. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML). Strategies can be registered allowing customization of how particular types are represented as XML. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.
Security Fix(es):
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 execution of a local command on the server.(CVE-2021-29505)
- Record
OESA-2021-1208- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2021:2683
7.5
Red Hat Security Advisory: xstream security update
- Record
RHSA-2021:2683- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-29505
7.5
XStream is software for serializing Java objects to XML and back again. A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream. No user who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types is affected. The vulnerability is patched in version 1.4.17.
- Record
UBUNTU-CVE-2021-29505- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0370 No score
Updated xstream packages fix security vulnerabilities
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service only by manipulating the processed input stream (CVE-2021-21341).
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 a server-side forgery request (CVE-2021-21342).
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 (CVE-2021-21343).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream (CVE-2021-21344).
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 (CVE-2021-21345).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream (CVE-2021-21346).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream (CVE-2021-21347).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return (CVE-2021-21348).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream (CVE-2021-21349).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to execute arbitrary code only by manipulating the processed input stream (CVE-2021-21350).
In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream (CVE-2021-21351).
A vulnerability in XStream versions prior to 1.4.17 may allow a remote attacker has sufficient rights to execute commands of the host only by manipulating the processed input stream (CVE-2021-29505).
Theses vulnerabilities are mitigated if user followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types.
- Record
MGASA-2021-0370- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0911-1 No score
Security update for xstream
This update for xstream fixes the following issues:
Upgrade to 1.4.17
- CVE-2021-29505: Fixed potential code execution when unmarshalling with XStream instances using an uninitialized security framework (bsc#1186651)
This update was imported from the SUSE:SLE-15-SP2:Update update project.
- Record
openSUSE-SU-2021:0911-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:1995-1 No score
Security update for xstream
This update for xstream fixes the following issues:
Upgrade to 1.4.17
- CVE-2021-29505: Fixed potential code execution when unmarshalling with XStream instances using an uninitialized security framework (bsc#1186651)
- Record
openSUSE-SU-2021:1995-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10592-1 No score
xstream-1.4.18-1.1 on GA media
These are all security issues fixed in the xstream-1.4.18-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10592-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:1995-1 No score
Security update for xstream
This update for xstream fixes the following issues:
Upgrade to 1.4.17
- CVE-2021-29505: Fixed potential code execution when unmarshalling with XStream instances using an uninitialized security framework (bsc#1186651)
- Record
SUSE-SU-2021:1995-1- Updated
- 2026-11-02
Affected products
- x-stream xstream
- xstream
- debian linux
- fedoraproject fedora
- netapp snapmanager
- oracle banking cash management
- oracle banking corporate lending process management
- oracle banking credit facilities process management
- oracle banking supply chain finance
- oracle banking trade finance process management
- oracle business activity monitoring
- oracle communications brm - elastic charging engine
Affected packages
| Package | Affected | Fixed |
|---|---|---|
com.thoughtworks.xstream:xstreamMaven |
before 1.4.17 | 1.4.17 |
libxstream-javaDebian:12 |
before 1.4.15-3 | 1.4.15-3 |
libxstream-javaDebian:13 |
before 1.4.15-3 | 1.4.15-3 |
libxstream-javaDebian:14 |
before 1.4.15-3 | 1.4.15-3 |
libxstream-javaDebian:9 |
before 1.4.11.1-1+deb9u3, plus listed versions 1.4.10-11.4.11-11.4.11.1-11.4.11.1-1+deb9u11.4.11.1-1+deb9u21.4.9-21.4.9-2+deb9u1 |
1.4.11.1-1+deb9u3 |
com.thoughtworks.xstream:xstreamMaven |
before 1.4.17, plus listed versions 0.10.20.30.50.6 Show 36 moreShow less1.01.0.11.0.21.11.1.11.1.21.1.31.21.2.11.2.21.31.3.11.41.4.11.4.101.4.10-java71.4.111.4.11-java71.4.11.11.4.121.4.12-java71.4.131.4.13-java71.4.141.4.14-java71.4.14-jdk71.4.151.4.161.4.21.4.31.4.41.4.51.4.61.4.71.4.81.4.9 |
1.4.17 |
xstreamMageia:8 From an advisory covering 12 CVEs |
before 1.4.15-1.1.mga8 | 1.4.15-1.1.mga8 |
xstreamopenEuler:20.03-LTS-SP1 |
before 1.4.17-1.oe1 | 1.4.17-1.oe1 |
xstreamRed Hat:enterprise_linux:7::client |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstream-javadocRed Hat:enterprise_linux:7::client |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
xstreamRed Hat:enterprise_linux:7::computenode |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstream-javadocRed Hat:enterprise_linux:7::computenode |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstreamRed Hat:enterprise_linux:7::server |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstream-javadocRed Hat:enterprise_linux:7::server |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstreamRed Hat:enterprise_linux:7::workstation |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstream-javadocRed Hat:enterprise_linux:7::workstation |
before 0:1.3.1-14.el7_9 | 0:1.3.1-14.el7_9 |
xstreamSUSE:Linux Enterprise Module for Development Tools 15 SP2 |
before 1.4.17-3.11.2 | 1.4.17-3.11.2 |
xstreamSUSE:Linux Enterprise Module for Development Tools 15 SP3 |
before 1.4.17-3.11.2 | 1.4.17-3.11.2 |
xstreamSUSE:Manager Server Module 4.1 |
before 1.4.17-3.11.2 | 1.4.17-3.11.2 |
xstreamSUSE:Manager Server Module 4.2 |
before 1.4.17-3.11.2 | 1.4.17-3.11.2 |
libxstream-javaUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.4.4-11.4.7-11.4.7-1ubuntu0.11.4.7-1ubuntu0.1+esm11.4.7-1ubuntu0.1+esm2 |
None known |
libxstream-javaUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.4.8-11.4.8-1ubuntu0.11.4.8-1ubuntu0.1+esm11.4.8-1ubuntu0.1+esm21.4.8-1ubuntu0.1+esm3 |
None known |
libxstream-javaUbuntu:18.04:LTS |
All versions, plus listed versions 1.4.10-11.4.11.1-1~18.041.4.11.1-1~18.04.11.4.11.1-1~18.04.21.4.11.1-1+deb10u4build0.18.04.1 |
None known |
libxstream-javaUbuntu:20.04:LTS |
All versions, plus listed versions 1.4.11.1-11.4.11.1-1ubuntu0.11.4.11.1-1ubuntu0.21.4.11.1-1ubuntu0.3 |
None known |
xstreamopenSUSE:Leap 15.2 |
before 1.4.17-lp152.2.9.1 | 1.4.17-lp152.2.9.1 |
xstreamopenSUSE:Leap 15.3 |
before 1.4.17-3.11.2 | 1.4.17-3.11.2 |
xstreamopenSUSE:Tumbleweed From an advisory covering 22 CVEs |
before 1.4.18-1.1 | 1.4.18-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | MyBlackManba/CVE-2021-29505 | 2021-06-08 |
| PoC in GitHub | cuijiung/xstream-CVE-2021-29505 | 2025-07-11 |
| Nuclei | XStream <1.4.17 - Remote Code Execution |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, exploits, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-29505 is a high vulnerability (CVSS 7.5) in X-stream Xstream, published May 18, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 77.2%, the 99th percentile. Fixed in com.thoughtworks.xstream:xstream 1.4.17.
References
github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc
github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f
github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227
lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%3E
lists.debian.org/debian-lts-announce/2021/07/msg00004.html
lists.fedoraproject.org/archives/list/[email protected]/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
Show 56 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
lists.fedoraproject.org/archives/list/[email protected]/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
security.netapp.com/advisory/ntap-20210708-0007
debian.org/security/2021/dsa-5004
oracle.com/security-alerts/cpuapr2022.html
oracle.com/security-alerts/cpujan2022.html
oracle.com/security-alerts/cpujul2022.html
oracle.com/security-alerts/cpuoct2021.html
x-stream.github.io/CVE-2021-29505.html
lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f%40%3Cdev.jmeter.apache.org%3E
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7
nvd.nist.gov/vuln/detail/CVE-2021-29505
github.com/advisories/GHSA-7chv-rrw6-w6fc
security-tracker.debian.org/tracker/CVE-2021-29505
github.com/x-stream/xstream
advisories.mageia.org/MGASA-2021-0370.html
bugs.mageia.org/show_bug.cgi?id=28844
access.redhat.com/errata/RHSA-2021:1354
debian.org/lts/security/2021/dla-2616
ubuntu.com/security/notices/USN-4943-1
lists.opensuse.org/archives/list/[email protected]/thread/H2CFEJOW6N5BGEB6UU3SEQ3UF5C2UWJL
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1208
access.redhat.com/errata/RHSA-2021:2683
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1966735
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_2683.json
access.redhat.com/security/cve/CVE-2021-29505
cve.org/CVERecord?id=CVE-2021-29505
suse.com/support/update/announcement/2021/suse-su-20211995-1
bugzilla.suse.com/1186651
suse.com/security/cve/CVE-2021-29505
ubuntu.com/security/CVE-2021-29505
lists.opensuse.org/archives/list/[email protected]/thread/WKAZW7SPSOY6JEPAX2RCIZEGPKTEBUNC
suse.com/security/cve/CVE-2016-3674
suse.com/security/cve/CVE-2017-7957
suse.com/security/cve/CVE-2020-26217
suse.com/security/cve/CVE-2020-26258
suse.com/security/cve/CVE-2020-26259
suse.com/security/cve/CVE-2021-21341
suse.com/security/cve/CVE-2021-21342
suse.com/security/cve/CVE-2021-21343
suse.com/security/cve/CVE-2021-21344
suse.com/security/cve/CVE-2021-21345
suse.com/security/cve/CVE-2021-21346
suse.com/security/cve/CVE-2021-21347
suse.com/security/cve/CVE-2021-21348
suse.com/security/cve/CVE-2021-21349
suse.com/security/cve/CVE-2021-21350
suse.com/security/cve/CVE-2021-21351
suse.com/security/cve/CVE-2021-39139
suse.com/security/cve/CVE-2021-39144
suse.com/security/cve/CVE-2021-39147
suse.com/security/cve/CVE-2021-39150
suse.com/security/cve/CVE-2021-39153