LiveActive security incident?Get immediate response
CVE Record

CVE-2021-39150: A Server-Side Forgery Request vulnerability in XStream via PriorityQueue unmarshaling

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream with a Java runtime version 14 to 8. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the [Security Framework](https://x-stream.github.io/security.html#framework), you will have to use at least version 1.4.18.

HighCVSS 8.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-39150 affects XStream, a Java XML serialization library. Vulnerable applications processing attacker-controlled XStream input could be induced to request internal, non-public resources. This creates SSRF risk and may expose sensitive internal services. The vendor says users using a strict type whitelist are not affected.

Executive priority

Treat as high priority where XStream processes untrusted input, especially in internet-facing or partner-facing systems. Prioritize upgrade and configuration validation, but avoid declaring emergency active-exploitation response without additional evidence.

Technical view

Affected XStream versions before 1.4.18 can trigger SSRF during PriorityQueue unmarshalling on Java runtimes 8 through 14, when unsafe input is processed. The issue is tied to deserialization behavior and XStream security framework configuration, especially reliance on the default blacklist rather than a minimal type whitelist.

Likely exposure

Exposure is most likely in Java applications or products embedding XStream before 1.4.18 and accepting XML streams from low-privileged or remote users. Risk is lower where XStream’s security framework uses a minimal required type whitelist.

Exploitation context

The source bundle does not show CISA KEV listing or cited evidence of active exploitation. CVSS indicates network attack vector, high complexity, low privileges, no user interaction, and high confidentiality, integrity, and availability impact.

Researcher notes

Key conditions are vulnerable XStream version, Java 8-14 runtime context, attacker-controlled processed input stream, and insufficient type allowlisting. Evidence provided supports SSRF via PriorityQueue unmarshalling, but does not include exploit prevalence, public exploitation confirmation, or complete downstream product impact.

Mitigation direction

  • Upgrade XStream to version 1.4.18 or later.
  • Configure XStream security with a minimal required type whitelist.
  • Do not rely on the default blacklist for affected versions.
  • Apply relevant Debian, Fedora, Oracle, or NetApp vendor updates where XStream is bundled.
  • Check vendor guidance for product-specific remediation details.

Validation and detection

  • Inventory applications and products that include x-stream:xstream or libxstream-java.
  • Confirm all detected XStream versions are 1.4.18 or later.
  • Review XStream security configuration for explicit minimal type whitelisting.
  • Identify endpoints or jobs that process externally supplied XStream XML.
  • Check vendor advisories for bundled XStream exposure in third-party products.
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-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 · medium confidence lookup

CWE-918: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. 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-39150 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-39150Attack 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-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-918 · source CWE mapping

Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.