CVE-2021-39144
Java vulnerability analysis and mitigation

Overview

XStream, a Java library for serializing objects to XML and back, contains a critical vulnerability (CVE-2021-39144) that allows remote command execution. The vulnerability affects all versions up to and including 1.4.17, when using the default configuration. The issue was discovered and reported by Ceclin and YXXX from the Tencent Security Response Center (XStream Advisory).

Technical details

The vulnerability exists in XStream's unmarshalling process where type information is used to recreate previously written objects. An attacker can manipulate the input stream to replace or inject objects that result in arbitrary command execution on the server. 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 (GitHub Advisory).

Impact

A successful exploit allows remote attackers to execute arbitrary commands with the privileges of the process owner on the target system by manipulating the processed input stream. The vulnerability is particularly severe as it can be exploited through any supported format, including both XML and JSON (XStream Advisory).

Mitigation and workarounds

XStream 1.4.18 addresses this vulnerability by changing the default security approach from a blacklist to a whitelist that blocks all classes except those types it has explicit converters for. Users who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types are not affected (Debian Advisory).

Community reactions

The vulnerability has received significant attention due to its severity and active exploitation. VMware took the unusual step of releasing patches for end-of-life products, highlighting the criticality of the issue. Multiple vendors including Oracle, NetApp, and Debian have issued security advisories and patches for their affected products (NetApp 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-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13805MEDIUM6.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13804MEDIUM5.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66372LOW2.8
  • JavaJava
  • org.mustangproject:library
NoYesNov 28, 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