CVE-2021-39153
Java vulnerability analysis and mitigation

Overview

XStream, a Java library to serialize objects to XML and back again, was found to contain a vulnerability (CVE-2021-39153) that affects versions up to and including 1.4.17. The vulnerability was discovered in August 2021 and affects installations using Java runtime versions 8-14 or systems with JavaFX installed (XStream CVE).

Technical details

The vulnerability exists in XStream's unmarshalling process where the stream contains type information to recreate previously written objects. During unmarshalling, XStream creates new instances based on this type information. An attacker can manipulate the processed input stream and replace or inject objects that result in execution of arbitrary code loaded from a remote server. The vulnerability affects multiple formats including XML and JSON (XStream CVE, NetApp Advisory).

Impact

The vulnerability has a CVSS v3.1 base score of 8.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H. If successfully exploited, it could allow a remote attacker to load and execute arbitrary code from a remote host by manipulating the processed input stream (NetApp Advisory).

Mitigation and workarounds

The vulnerability was fixed in XStream version 1.4.18, which no longer uses a blacklist by default since it cannot be secured for general purpose. For earlier versions, users should follow XStream's security framework recommendation to set up a whitelist limited to the minimal required types (XStream CVE, GitHub Advisory).

Community reactions

Multiple vendors and organizations issued security advisories and patches in response to this vulnerability, including NetApp, Red Hat, Oracle, and Debian. The vulnerability was considered serious enough to warrant inclusion in multiple security updates across different platforms (NetApp Advisory, Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66516CRITICAL10
  • JavaJava
  • opensearch-2
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management