CVE-2024-47072: x-stream xstream · Stack-based Buffer Overflow
Affects x-stream xstreamSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 1.4.21 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 2.0% chance of exploitation in 30 days – higher than 80% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.21
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade com.thoughtworks.xstream/xstream to 1.4.21.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavencom.thoughtworks.xstream/xstreampkg:maven/com.thoughtworks.xstream/xstreamOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade all instances of XStream to version 1.4.21 or later, which includes the fix to detect and prevent stack overflow caused by manipulated binary input streams. 2. For environments where immediate upgrade is not possible, implement robust exception handling to catch StackOverflowError in the client code that invokes XStream with BinaryStreamDriver configuration, preventing application crashes. 3. Restrict or validate all incoming binary XML streams rigorously to ensure they originate from trusted sources and conform to expected schemas, reducing the risk of malicious input. 4. Employ runtime application self-protection (RASP) or similar monitoring tools to detect abnormal deserialization behavior or repeated crashes indicative of exploitation attempts. 5. Conduct code reviews and penetration testing focused on deserialization components to identify and remediate similar vulnerabilities. 6. Maintain up-to-date inventory of software dependencies and monitor for security advisories related to serialization libraries. 7. Implement network-level protections such as Web Application Firewalls (WAFs) with custom rules to detect and block suspicious binary XML payloads targeting deserialization endpoints.
Description
XStream is a simple library to serialize objects to XML and back again. This vulnerability may allow a remote attacker to terminate the application with a stack overflow error resulting in a denial of service only by manipulating the processed input stream when XStream is configured to use the BinaryStreamDriver. XStream 1.4.21 has been patched to detect the manipulation in the binary input stream causing the the stack overflow and raises an InputManipulationException instead. Users are advised to upgrade. Users unable to upgrade may catch the StackOverflowError in the client code calling XStream if XStream is configured to use the BinaryStreamDriver.
References
- github.com/x-stream/xstream/security/advisories/GHSA-hfq9-hggm-c56q (opens in a new tab)
- github.com/x-stream/xstream/commit/bb838ce2269cac47433e31c77b2b236466e9f266 (opens in a new tab)
- x-stream.github.io/CVE-2024-47072.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/12/msg00023.html (opens in a new tab)