LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39140: XStream can cause a Denial of Service

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service 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.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This affects applications using XStream before 1.4.18 to parse XML. A manipulated input stream can consume all CPU and make the service unavailable. The issue is availability-only, but can still disrupt customer-facing services or internal systems that deserialize attacker-controlled XML.

Executive priority

Treat as a moderate availability risk. Patch normal vulnerability management cycles, but accelerate for public, revenue-critical, or multi-tenant services that parse untrusted XML because exploitation can cause service disruption without data theft.

Technical view

XStream versions before 1.4.18 are vulnerable to denial of service through processed input manipulation, tied to unsafe deserialization behavior and an endless-loop condition. CVSS 3.1 is 6.5 with network attack vector, low complexity, privileges required, no user interaction, and high availability impact.

Likely exposure

Exposure is most likely in Java applications, products, or packaged distributions that include x-stream XStream below 1.4.18 and deserialize XML from users, tenants, integrations, queues, or APIs. Systems using a strict XStream whitelist limited to required types are described as not affected.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. A remote attacker with required privileges may trigger excessive CPU consumption by influencing XML input processed by XStream. Impact is denial of service, not confidentiality or integrity compromise.

Researcher notes

Evidence supports affected x-stream XStream versions before 1.4.18, CWE-502 and CWE-835, and DoS impact only. The bundle names XStream 1.4.18 and whitelist-based security configuration; it does not provide proof of active exploitation or broader affected products beyond cited vendors.

Mitigation direction

  • Upgrade XStream to 1.4.18 or a vendor package containing the fix.
  • Enable XStream security framework with a minimal required-type whitelist.
  • Update Debian, Fedora, Oracle, NetApp, or other affected packaged products per vendor advisories.
  • Prioritize internet-facing or multi-tenant XML processing paths first.
  • Check vendor guidance for embedded or transitive XStream copies.

Validation and detection

  • Inventory direct and transitive XStream dependencies and identify versions below 1.4.18.
  • Find application paths that deserialize XML from external or lower-trust sources.
  • Confirm XStream whitelist configuration is enabled and limited to required types.
  • Verify vendor packages include the referenced security update.
  • Review monitoring for CPU saturation or availability incidents near XML parsing components.
Prepared
Confidence
high
Sources
10

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-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
cwe · low confidence lookup

CWE-835: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. 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
cve · low confidence lookup

CVE-2021-39140 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
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/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
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H2.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2021-39140Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/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-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.

CWE-835 · source CWE mapping

Loop with Unreachable Exit Condition ('Infinite Loop')

Loop with Unreachable Exit Condition ('Infinite Loop') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.