LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39153: XStream is vulnerable to an Arbitrary Code Execution attack

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream, if using the version out of the box with Java runtime version 14 to 8 or with JavaFX installed. 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.

HighCVSS 8.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

XStream versions before 1.4.18 can turn malicious XML input into remote code execution in certain Java environments. The highest business risk is any application or product that processes attacker-controlled XML with XStream's default, pre-1.4.18 security model. Systems using a tight whitelist of allowed types are called out as not affected by this issue.

Executive priority

Treat as high priority where XStream handles external XML or is embedded in exposed products. The fix path is mature, but missed transitive usage can preserve risk. Absence from KEV lowers emergency pressure, not remediation importance.

Technical view

CVE-2021-39153 is an XStream deserialization weakness mapped to CWE-502 and CWE-434. A remote attacker with low privileges may manipulate the processed input stream to load and execute code from a remote host when vulnerable XStream defaults are used with Java 8 through 14 or JavaFX installed. CVSS is 8.5 high.

Likely exposure

Exposure is most likely in Java applications, middleware, or third-party products bundling x-stream/xstream below 1.4.18 and accepting XML from users, APIs, queues, files, or integrations. Debian, Fedora, Oracle, and NetApp references indicate downstream product and package impact, so transitive dependency review matters.

Exploitation context

The provided bundle does not show CISA KEV listing or active exploitation evidence. The flaw is remotely reachable when an exposed workflow deserializes attacker-controlled XML through affected XStream defaults. The CVSS marks attack complexity high, so prioritize internet-facing and integration-heavy systems first.

Researcher notes

Focus on confirming reachability, configuration, and runtime context rather than assuming every old XStream copy is exploitable. The source text says users following the whitelist recommendation are not affected. Do not infer exploit activity from severity alone.

Mitigation direction

  • Upgrade XStream to 1.4.18 or later through direct or vendor-supported packages.
  • Configure XStream security with a minimal required-type whitelist.
  • Update affected downstream packages from Debian, Fedora, Oracle, NetApp, or other vendors.
  • Inventory transitive dependencies that bundle x-stream/xstream below 1.4.18.
  • Check current vendor guidance where products embed XStream.

Validation and detection

  • Search SBOMs, build files, and runtime classpaths for XStream versions below 1.4.18.
  • Confirm XML deserialization paths do not accept untrusted data without whitelist controls.
  • Verify deployed OS or vendor packages include the referenced security updates.
  • Review Java runtime context for Java 8 through 14 or JavaFX presence.
  • Confirm exposed routes, jobs, and integrations using XStream have compensating controls.
Prepared
Confidence
high
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-434: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-502: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-39153 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
12Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.5CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H1.86Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.5High
CVSS 3.1 vector shape for CVE-2021-39153Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
x-streamxstream< 1.4.18Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-434 · source CWE mapping

Unrestricted Upload of File with Dangerous Type

Unrestricted Upload of File with Dangerous Type represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-502 · source CWE mapping

Deserialization of Untrusted Data

Deserialization of Untrusted Data represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.