Every CVE Search/ Get API key

CVE-2021-29505

XStream is vulnerable to a Remote Command Execution attack

7.5 HighPublic exploitFix available

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

77.2%Up 76.3 points since May 29, 2021
90%50%10%1%

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 HighCVSS: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 HighCVSS: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:

Record
GHSA-7chv-rrw6-w6fc
CVSS 3.1
7.5 HighCVSS: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 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.5 MediumAV: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 HighCVSS: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 HighCVSS: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:

Record
GHSA-7chv-rrw6-w6fc
CVSS 3.1
7.5 HighCVSS: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 CriticalCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1
8.8 HighCVSS: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

Show 6 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
com.thoughtworks.xstream:xstream
Maven
before 1.4.17
1.4.17
libxstream-java
Debian:12
before 1.4.15-3
1.4.15-3
libxstream-java
Debian:13
before 1.4.15-3
1.4.15-3
libxstream-java
Debian:14
before 1.4.15-3
1.4.15-3
libxstream-java
Debian: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:xstream
Maven
before 1.4.17, plus listed versions
0.10.20.30.50.6
Show 36 moreShow less
1.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
xstream
Mageia:8
From an advisory covering 12 CVEs
before 1.4.15-1.1.mga8
1.4.15-1.1.mga8
xstream
openEuler:20.03-LTS-SP1
before 1.4.17-1.oe1
1.4.17-1.oe1
xstream
Red Hat:enterprise_linux:7::client
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream-javadoc
Red Hat:enterprise_linux:7::client
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
Show 17 moreShow less
Affected packages
PackageAffectedFixed
xstream
Red Hat:enterprise_linux:7::computenode
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream-javadoc
Red Hat:enterprise_linux:7::computenode
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream
Red Hat:enterprise_linux:7::server
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream-javadoc
Red Hat:enterprise_linux:7::server
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream
Red Hat:enterprise_linux:7::workstation
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream-javadoc
Red Hat:enterprise_linux:7::workstation
before 0:1.3.1-14.el7_9
0:1.3.1-14.el7_9
xstream
SUSE:Linux Enterprise Module for Development Tools 15 SP2
before 1.4.17-3.11.2
1.4.17-3.11.2
xstream
SUSE:Linux Enterprise Module for Development Tools 15 SP3
before 1.4.17-3.11.2
1.4.17-3.11.2
xstream
SUSE:Manager Server Module 4.1
before 1.4.17-3.11.2
1.4.17-3.11.2
xstream
SUSE:Manager Server Module 4.2
before 1.4.17-3.11.2
1.4.17-3.11.2
libxstream-java
Ubuntu: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-java
Ubuntu: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-java
Ubuntu: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-java
Ubuntu: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
xstream
openSUSE:Leap 15.2
before 1.4.17-lp152.2.9.1
1.4.17-lp152.2.9.1
xstream
openSUSE:Leap 15.3
before 1.4.17-3.11.2
1.4.17-3.11.2
xstream
openSUSE: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.

Public exploits
SourceLinkDate
PoC in GitHubMyBlackManba/CVE-2021-295052021-06-08
PoC in GitHubcuijiung/xstream-CVE-2021-295052025-07-11
NucleiXStream <1.4.17 - Remote Code Execution

History

History
RecordedChangedSources
affected, exploits, facts
first indexedCVE 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

Show 56 moreShow less
MoveEnter Open