XStream com.sun.xml.internal.ws.client.sei Unsafe Deserialization RCE
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.