Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 31 Mar 2023.
Debian LinuxOperating system · Debian

CVE-2021-39144

HIGH · 8.5 CVSS v3.1 Published 2021-08-23
Fix available
A fix is available. Upgrade to 1.4.18 or later.
See remediation →
100/100
Remediation priority · Urgent
In the wild High EPSS Public exploit Remotely reachable Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

This is a deserialization vulnerability in XStream (versions prior to 1.4.18) that allows remote code execution through manipulated XML input streams. Attackers can execute arbitrary commands on the host if they have sufficient rights to control the processed input stream. The vulnerability is exploitable only when users have not configured XStream's security framework with a whitelist of allowed types.

MitigationUpgrade to XStream 1.4.18 or later and configure a whitelist-based security framework that limits allowed types to the minimal set required by the application, as blacklist-based approaches cannot be secured for general-purpose use.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Debian LinuxOperating system
Affected:= 9.0= 10.0= 11.0
FedoraOperating system
Affected:= 33= 34= 35
XstreamApplication
Affected:< 1.4.18
SnapmanagerApplication
Affected:all versions
Business Activity MonitoringApplication
Affected:= 12.2.1.4.0
Commerce Guided SearchApplication
Affected:= 11.3.2
Communications Billing And Revenue Management Elastic Charging EngineApplication
Affected:= 11.3= 12.0
Communications Cloud Native Core Automated Test SuiteApplication
Affected:= 1.9.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Locate XStream library in the environment
    Search for xstream jar files (e.g., xstream-*.jar) in application directories, lib folders, or dependency manifests (pom.xml, build.gradle, requirements.txt for JVM languages). Use commands like 'find . -name "xstream*.jar"' or grep dependency files for xstream.
    Affected if XStream library is present in the environment
  2. Determine installed XStream version
    Inspect the jar filename for version number, check META-INF/MANIFEST.MF inside the jar for Implementation-Version, or review the dependency management file (pom.xml, build.gradle) for the xstream version declaration.
    Affected if The version is lower than 1.4.18 (e.g., 1.4.17, 1.4.16, etc.)
  3. Identify if application deserializes XML input streams
    Review application source code for XStream usage patterns: look for XStream object instantiation (new XStream()) followed by fromXML() calls, or XML unmarshalling operations. Check for endpoints or functions that accept XML payloads processed by XStream.
    Affected if The application uses XStream.fromXML() or similar methods to process incoming XML data
  4. Confirm default blacklist security is in use
    Inspect code for XStream security configuration. Look for absence of setupDefaultSecurity() with a whitelist, or check if only addTypePermission() calls use blacklist patterns (e.g., anyBlacklist, anySerializationType). Default vulnerable config has no explicit whitelist.
    Affected if XStream uses default blacklist configuration without an explicit whitelist of allowed types
  5. Check running service exposure
    Identify if the XStream processing endpoint is accessible to network callers or accepts input from untrusted sources. Review web service endpoints, APIs, or file processing services that use XStream.
    Affected if The XStream processing functionality is exposed to untrusted input sources

You are affected if XStream library version lower than 1.4.18 is present AND your application uses XStream to process XML input from untrusted sources with the default blacklist security model.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.4.18 or later
Fixed in 1.4.18
Vendor patch www.oracle.com →
Interim mitigation

Upgrade to XStream 1.4.18 or later and configure a whitelist-based security framework that limits allowed types to the minimal set required by the application, as blacklist-based approaches cannot be secured for general-purpose use.

Recommended fix High confidence

XStream 1.4.18 or later

  1. Identify all applications and dependencies using XStream library in your environment
  2. Locate the XStream JAR files or Maven/Gradle dependencies in your projects
  3. For Maven projects: Update the XStream dependency version to 1.4.18 or later in pom.xml (e.g., <groupId>com.thoughtworks.xstream</groupId><artifactId>xstream</artifactId><version>1.4.18</version>)
  4. For Gradle projects: Update to implementation 'com.thoughtworks.xstream:xstream:1.4.18' or later
  5. For standalone JAR deployments: Replace existing xstream JAR with version 1.4.18 or newer
  6. Rebuild and recompile all affected applications
  7. Test all XML deserialization functionality to ensure compatibility with the upgrade
  8. Deploy the updated applications to production environments
Caveat Review release notes for 1.4.18; upgrading may require code changes if using types that are no longer deserialized by default. Consider implementing a whitelist of allowed types using XStream.setupDefaultSession() or custom Converters for production hardening.

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Debian Linux Exploited in the wild — priority engagement
  • Consultation8.0 h
  • Implementation16.0 h
  • Testing12.0 h
  • Review / QA4.0 h
40.0 hours of engineering $7,000
Get it fixed fast

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $11,200.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-39144 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-39144 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data