← Vulnerability feed

Vulnerability record · CVE-2021-39144 · published 23 August 2021

CVE-2021-39144: XStream deserialization allows remote command execution

Xstream · Xstream

XStream, a Java library that serializes objects to and from XML, can execute host commands when a remote attacker with sufficient rights manipulates the processed input stream. The flaw is a deserialization/code injection issue (CWE-502, CWE-94) that only affects deployments that did not configure XStream's security framework with a minimal type whitelist; XStream 1.4.18 dropped the default blacklist because it cannot be secured for general use.

8.5 CVSS 3.1 High CISA KEV since 10 Mar 2023 EPSS 98% · top 0.1% CWE-94 · Code injectionCWE-502 · Deserialization of untrusted data
8.5CVSS 3.1 base score, v2 6.0
98%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
15Affected product versions listed by NVD
25References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

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

Automated analysis

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

critical priorityIt is in CISA KEV with confirmed exploitation, has an EPSS probability above 98 percent, and yields remote code execution.

What it is

XStream, a Java library that serializes objects to and from XML, can execute host commands when a remote attacker with sufficient rights manipulates the processed input stream. The flaw is a deserialization/code injection issue (CWE-502, CWE-94) that only affects deployments that did not configure XStream's security framework with a minimal type whitelist; XStream 1.4.18 dropped the default blacklist because it cannot be secured for general use.

Impact

An attacker who can supply crafted XML to a vulnerable XStream instance can run arbitrary commands on the host, leading to full compromise of the application and its data.

Attack surface

Reached over the network (AV:N) by submitting a malicious serialized XML stream to an application that uses XStream without a whitelist; the CVSS vector requires low privileges (PR:L) and no user interaction (UI:N).

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2023-03-10 with a 2023-03-31 remediation due date, and EPSS gives a 30-day probability of 0.98124 (99.9th percentile); references are tagged Exploit, including a public VMware NSX Manager unauthenticated RCE write-up.

What to do

  • Upgrade XStream to a fixed release and apply vendor patches for all affected products (Oracle, NetApp, Debian, Fedora) per their advisories.
  • Configure XStream's security framework with a whitelist limited to the minimal required types, as the vendor recommends.
  • Do not rely on the default blacklist; treat any XStream instance without a whitelist as exposed.
  • Inventory applications and embedded libraries that bundle XStream, including third-party products, and confirm their patched status.
  • Restrict network access to services that deserialize XML with XStream so untrusted input cannot reach them.

Detection

  • Monitor application and web logs for XML payloads containing XStream class references or unexpected Java type names in deserialization requests.
  • Alert on child process creation from Java application servers that normally do not spawn shells or system commands.
  • Search for outbound or unusual network connections originating from hosts running XStream-based services.
  • Check for the presence of vulnerable XStream versions in installed packages and application dependencies.

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

Exploitation in the wild

CISA added CVE-2021-39144 to the Known Exploited Vulnerabilities catalog on 10 March 2023 as "XStream Remote Code Execution Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 31 March 2023.

Affected products

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

References

LinkTags
http://packetstormsecurity.com/files/169859/VMware-NSX-Manager-XStream-Unauthenticated-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
https://github.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fh Vendor Advisory
https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2F Broken LinkMailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O Broken LinkMailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7 Broken LinkMailing ListRelease Notes
https://security.netapp.com/advisory/ntap-20210923-0003/ 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 PatchThird Party Advisory
https://x-stream.github.io/CVE-2021-39144.html ExploitVendor Advisory
http://packetstormsecurity.com/files/169859/VMware-NSX-Manager-XStream-Unauthenticated-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
https://github.com/x-stream/xstream/security/advisories/GHSA-j9h8-phrw-h4fh Vendor Advisory
https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2F Broken LinkMailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O Broken LinkMailing ListRelease Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7 Broken LinkMailing ListRelease Notes
https://security.netapp.com/advisory/ntap-20210923-0003/ 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 PatchThird Party Advisory
https://x-stream.github.io/CVE-2021-39144.html ExploitVendor Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39144 US Government Resource

Track CVE-2021-39144 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-2022-22947Spring Cloud Gateway Actuator endpoint code injectionSpring Cloud Gateway versions before 3.1.1+ and 3.0.7+ allow code injection when the Gateway Actuator endpoint is enabled, exposed and unsecured. A c…KEVEPSS 98%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%analysed

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