← Vulnerability feed

Vulnerability record · CVE-2021-29505 · published 28 May 2021

CVE-2021-29505: XStream XML deserialization allows remote command execution

Xstream · Xstream

XStream versions prior to 1.4.17 deserialize untrusted XML input without adequate type restrictions, allowing an attacker with sufficient rights to execute commands on the host by manipulating the processed input stream. It matters because XStream is widely embedded in Java applications and downstream products, and the flaw is a code injection via deserialization of untrusted data. Deployments that configured XStream's security framework with a minimal whitelist are not affected.

8.8 CVSS 3.1 High EPSS 77% · top 0.5% CWE-94 · Code injectionCWE-502 · Deserialization of untrusted data
8.8CVSS 3.1 base score, v2 6.5
77%EPSS exploitation probability, 30 days
NoNot in CISA KEV
17Affected product versions listed by NVD
28References
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote code execution with a CVSS of 8.8 and a very high EPSS probability, though exploitation requires some existing privileges and no KEV listing exists.

What it is

XStream versions prior to 1.4.17 deserialize untrusted XML input without adequate type restrictions, allowing an attacker with sufficient rights to execute commands on the host by manipulating the processed input stream. It matters because XStream is widely embedded in Java applications and downstream products, and the flaw is a code injection via deserialization of untrusted data. Deployments that configured XStream's security framework with a minimal whitelist are not affected.

Impact

An attacker who can supply crafted XML to a vulnerable XStream instance gains remote command execution on the host with the privileges of the application. This can lead to full compromise of confidentiality, integrity and availability of that system.

Attack surface

Reached over the network by submitting a manipulated serialized XML stream to an application that uses XStream for deserialization. The CVSS vector indicates low privileges are required (PR:L) and no user interaction (UI:N), so the attacker needs some existing access or rights on the target application.

Exploitation

Not listed in CISA KEV and no ransomware associations are documented, but EPSS is very high at 0.772 (99.5th percentile), indicating strong likelihood of exploitation activity. References include patch commits and vendor advisories, with no public exploit tag in the record.

What to do

  • Upgrade XStream to version 1.4.17 or later, which patches the flaw.
  • Apply vendor patches for downstream products (Debian, Fedora, NetApp, Oracle) that bundle XStream.
  • Configure XStream's security framework with a whitelist limited to the minimal required types, which the advisory states prevents exploitation.
  • Avoid deserializing XML from untrusted or unauthenticated sources; validate and restrict input where deserialization is unavoidable.
  • Restrict application privileges so a compromised process cannot execute arbitrary host commands.

Detection

  • Monitor application and host logs for unexpected process execution or command spawning from Java application servers using XStream.
  • Inspect inbound XML payloads for XStream-specific class and field markers that indicate deserialization gadget attempts.
  • Track XStream library versions across applications and flag any instance below 1.4.17.
  • Alert on outbound network connections or file writes originating from the deserialization code path.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

17 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f PatchThird Party Advisory
https://github.com/x-stream/xstream/commit/f0c4a8d861b68ffc3119cfbbbd632deee624e227
https://github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc Third Party Advisory
https://lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f@%3Cdev.jmeter.apache.org%
https://lists.debian.org/debian-lts-announce/2021/07/msg00004.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected]/message/22KVR6B5IZP3BGQ3HPWIO2FWW
https://lists.fedoraproject.org/archives/list/[email protected]/message/PVPHZA7VW2RRSDCOIPP2W6O5N
https://lists.fedoraproject.org/archives/list/[email protected]/message/QGXIU3YDPG6OGTDHMBLAFN7BP
https://security.netapp.com/advisory/ntap-20210708-0007
https://www.debian.org/security/2021/dsa-5004 Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html Mailing ListThird Party Advisory
https://x-stream.github.io/CVE-2021-29505.html
https://github.com/x-stream/xstream/commit/24fac82191292c6ae25f94508d28b9823f83624f PatchThird Party Advisory
https://github.com/x-stream/xstream/security/advisories/GHSA-7chv-rrw6-w6fc Third Party Advisory
https://lists.apache.org/thread.html/r8ee51debf7fd184b6a6b020dc31df25118b0aa612885f12fbe77f04f%40%3Cdev.jmeter.apache.or Issue TrackingMailing List
https://lists.debian.org/debian-lts-announce/2021/07/msg00004.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2F Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7 Mailing List
https://security.netapp.com/advisory/ntap-20210708-0007/ Third Party Advisory
https://www.debian.org/security/2021/dsa-5004 Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html Mailing ListThird Party Advisory

Track CVE-2021-29505 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-29505), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.