CVE-2021-39141: XStream com.sun.xml.internal.ws.client.sei Unsafe Deserialization RCE
- Vendors
- Oracle CorporationDebian ProjectFedora ProjectNetAppXstream
CVE-2021-39141 is an unsafe deserialization vulnerability in XStream's XML-to-object processing. An attacker can craft a processed input stream that causes XStream to deserialize classes in the com.sun.xml.internal.ws.client.sei package, enabling loading and execution of arbitrary code from a remote host. The issue affects deployments that rely on permissive type handling or blacklist-based protection rather than a narrowly scoped allowlist.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A remote attacker able to supply a malicious XML input stream to an affected XStream deserialization path can execute arbitrary code in the security context of the application or service processing that input. This can result in full compromise of the affected application, access to its data and credentials, and potential pivoting to connected systems.
Mitigation
If you can’t patch tonight, do this now.
Configure XStream's security framework with an explicit allowlist limited to the minimum types required by the application. Do not rely on a blacklist to secure general-purpose deserialization. Restrict untrusted parties from reaching interfaces that deserialize XML with XStream until updates and allowlist controls are in place.
Remediation
Patch, then assume compromise.
Upgrade XStream to version 1.4.18 or a vendor-supplied fixed package. XStream 1.4.18 no longer uses a blacklist by default. For Red Hat Enterprise Linux 7, apply the vendor update containing xstream-1.3.1-16.el7_9 or later. Apply the relevant supported product updates for integrations or products bundling XStream.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-39141 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-39141 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-39141?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-39141, the earliest disclosed Aug 24, 2021.
- Is there a patch for CVE-2021-39141?
- Upgrade XStream to version 1.4.18 or a vendor-supplied fixed package. XStream 1.4.18 no longer uses a blacklist by default.
- What products are affected by CVE-2021-39141?
- Xstream, Oracle Corporation Business Activity Monitoring, Oracle Corporation Commerce Guided Search, Oracle Corporation Communications Billing And Revenue Management Elastic Charging Engine, Oracle Corporation Communications Cloud Native Core Automated Test Suite, and 10 more.
- How severe is CVE-2021-39141?
- CVE-2021-39141 has a CVSS v3.1 score of 8.5 (High) and an EPSS score of 16.1% (97th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.