CVE-2024-47072
Java vulnerability analysis and mitigation

Overview

XStream, a Java library for object serialization to XML, was found to contain a high-severity denial-of-service vulnerability (CVE-2024-47072) with a CVSS score of 7.5. The vulnerability affects all versions up to and including 1.4.20 when using XStream's BinaryStreamDriver. The issue was discovered by Alexis Challande of Trail of Bits and was publicly disclosed on November 7, 2024 (XStream Advisory).

Technical details

The vulnerability stems from insecure handling of string value IDs during the deserialization process within the XStream BinaryStreamDriver. The driver uses a mechanism to map string values to IDs for optimization purposes, but a flaw in the reader's implementation allows for endless recursion during the ID mapping process. When unmarshalling data, the reader's implementation uses a simple one-time recursion after reading a mapping token to process the next normal token of the data stream, which can be exploited to trigger an endless recursion loop (Security Online).

Impact

The vulnerability allows remote attackers to terminate applications using XStream with BinaryStreamDriver by triggering a stack overflow error, resulting in a denial of service. The attack requires no user interaction and can be executed remotely, leading to high availability impact while having no effect on confidentiality or integrity (XStream Doc).

Mitigation and workarounds

The primary mitigation is to upgrade to XStream version 1.4.21, which detects the manipulation in the binary input stream and raises an InputManipulationException instead of crashing. For users unable to upgrade immediately, a temporary workaround involves implementing error handling to catch the StackOverflowError in the client code calling XStream. However, this is only a stopgap measure and not a complete solution (XStream Advisory).

Additional resources


SourceThis report was generated using AI

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