← Vulnerability feed

Vulnerability record · CVE-2021-21344 · published 23 March 2021

CVE-2021-21344: XStream deserialization allows remote code execution

NNetapp · Oncommand Insight

XStream before 1.4.16 deserializes untrusted XML without adequate type restrictions, letting a remote attacker craft a stream that loads and executes arbitrary code from a remote host. The flaw matters because XStream is embedded in many Java applications and middleware, so any endpoint that parses attacker-supplied XML is a potential entry point. Deployments that configured the security framework with a minimal whitelist are not affected; those relying on the default blacklist must upgrade to at least 1.4.16.

9.8 CVSS 3.1 Critical EPSS 76% · top 0.5% CWE-434 · Unrestricted file uploadCWE-502 · Deserialization of untrusted data
9.8CVSS 3.1 base score, v2 7.5
76%EPSS exploitation probability, 30 days
NoNot in CISA KEV
16Affected product versions listed by NVD
30References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

XStream is a Java library to serialize objects to XML and back again. 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. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.

CVSS:3.1/AV:N/AC:L/PR:N/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.

critical priorityCVSS 9.8 with no authentication or user interaction required, remote code execution impact, and an EPSS probability above 0.75 despite no KEV listing.

What it is

XStream before 1.4.16 deserializes untrusted XML without adequate type restrictions, letting a remote attacker craft a stream that loads and executes arbitrary code from a remote host. The flaw matters because XStream is embedded in many Java applications and middleware, so any endpoint that parses attacker-supplied XML is a potential entry point. Deployments that configured the security framework with a minimal whitelist are not affected; those relying on the default blacklist must upgrade to at least 1.4.16.

Impact

An unauthenticated remote attacker can execute arbitrary code in the context of the application, leading to full compromise of confidentiality, integrity and availability. The CVSS vector rates all three impacts as high.

Attack surface

Reached over the network by submitting a manipulated XML input stream to any XStream-based deserialization endpoint; the CVSS vector shows no privileges and no user interaction required. The description does not enumerate specific exposed endpoints, so defenders must identify where XStream processes untrusted XML in their own deployments.

Exploitation

Not listed in CISA KEV and no ransomware groups are documented using it, but EPSS is 0.7598 (99.5th percentile), indicating a high predicted likelihood of exploitation activity. The vendor advisory reference is tagged Exploit, and a mitigation workaround reference is also provided.

What to do

  • Upgrade XStream to version 1.4.16 or later, which is the minimum version required when relying on the default blacklist.
  • Apply vendor patches for the listed downstream products (Apache ActiveMQ, JMeter, NetApp OnCommand Insight, Oracle WebCenter Portal and others) rather than patching XStream alone.
  • Configure XStream's security framework with a whitelist limited to the minimal required types, which the advisory states leaves users unaffected.
  • If upgrading is not immediately possible, apply the vendor-documented workaround referenced in the XStream security page.
  • Inventory all applications and middleware that bundle XStream and confirm which ones parse untrusted XML.
  • Restrict network access to XML-processing endpoints until patched.

Detection

  • Monitor application and WAF logs for XML payloads containing XStream class references or unusual type tags in deserialization requests.
  • Alert on outbound network connections or process execution spawned by Java services that handle XML input.
  • Search deployed artifacts for bundled XStream versions below 1.4.16 and correlate with internet-facing services.
  • Watch for repeated malformed or oversized XML requests to the same endpoint, which may indicate exploitation attempts.

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

Affected products

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

References

LinkTags
http://x-stream.github.io/changes.html#1.4.16 Release NotesThird Party Advisory
https://github.com/x-stream/xstream/security/advisories/GHSA-59jw-jqf4-3wq3 Third Party Advisory
https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apach Issue TrackingMailing ListThird Party Advisory
https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.or Issue TrackingMailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2F Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7 Mailing ListThird Party Advisory
https://security.netapp.com/advisory/ntap-20210430-0002/ Third Party Advisory
https://www.debian.org/security/2021/dsa-5004 Mailing ListThird Party Advisory
https://www.oracle.com//security-alerts/cpujul2021.html Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchVendor Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html Third Party Advisory
https://x-stream.github.io/CVE-2021-21344.html ExploitThird Party Advisory
https://x-stream.github.io/security.html#workaround MitigationThird Party Advisory
http://x-stream.github.io/changes.html#1.4.16 Release NotesThird Party Advisory
https://github.com/x-stream/xstream/security/advisories/GHSA-59jw-jqf4-3wq3 Third Party Advisory
https://lists.apache.org/thread.html/r8244fd0831db894d5e89911ded9c72196d395a90ae655414d23ed0dd%40%3Cusers.activemq.apach Issue TrackingMailing ListThird Party Advisory
https://lists.apache.org/thread.html/r9ac71b047767205aa22e3a08cb33f3e0586de6b2fac48b425c6e16b0%40%3Cdev.jmeter.apache.or Issue TrackingMailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2021/04/msg00002.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2F Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7 Mailing ListThird Party Advisory
https://security.netapp.com/advisory/ntap-20210430-0002/ Third Party Advisory
https://www.debian.org/security/2021/dsa-5004 Mailing ListThird Party Advisory
https://www.oracle.com//security-alerts/cpujul2021.html Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchVendor Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html Third Party Advisory
https://x-stream.github.io/CVE-2021-21344.html ExploitThird Party Advisory
https://x-stream.github.io/security.html#workaround MitigationThird Party Advisory

Track CVE-2021-21344 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-21344), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.