Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2021-39141: XStream com.sun.xml.internal.ws.client.sei Unsafe Deserialization RCE

Published Aug 23, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.5High · v3.1
EPSS16.1%97th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Oracle CorporationDebian ProjectFedora ProjectNetAppXstream
IdentifiersCVE-2021-39141CWE-502 · Deserialization of Untrusted Data

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
NetAppSnapmanagerapplication
Oracle CorporationBusiness Activity Monitoringapplication
Oracle CorporationCommerce Guided Searchapplication
Oracle CorporationCommunications Billing And Revenue Management Elastic Charging Engineapplication
Oracle CorporationCommunications Cloud Native Core Automated Test Suiteapplication
Oracle CorporationCommunications Cloud Native Core Binding Support Functionapplication
Oracle CorporationCommunications Cloud Native Core Policyapplication
Oracle CorporationCommunications Unified Inventory Managementapplication
Oracle CorporationRetail Xstore Point Of Serviceapplication
Oracle CorporationUtilities Frameworkapplication
Oracle CorporationUtilities Testing Acceleratorapplication
Oracle CorporationWebcenter Portalapplication
XstreamXstreamapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.