Vulnerability · Published Nov 7, 2024 · Assigned by GitHub_M
CVE-2024-47072XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream
High 7.5
In plain English
A high-severity stack buffer overflow in xstream from x-stream. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libxstream-java | 1.4.20-1+deb12u1 | DEBIAN-CVE-2024-47072 |
| Debian:13 | libxstream-java | 1.4.21-1 | DEBIAN-CVE-2024-47072 |
| Debian:14 | libxstream-java | 1.4.21-1 | DEBIAN-CVE-2024-47072 |
| Maven | com.thoughtworks.xstream:xstream | 1.4.21 | GHSA-hfq9-hggm-c56q |
| Ubuntu:22.04:LTS | libxstream-java | no fix listed | UBUNTU-CVE-2024-47072 |
| Ubuntu:24.04:LTS | libxstream-java | no fix listed | UBUNTU-CVE-2024-47072 |
| Ubuntu:25.10 | libxstream-java | no fix listed | UBUNTU-CVE-2024-47072 |
| Ubuntu:26.04:LTS | libxstream-java | no fix listed | UBUNTU-CVE-2024-47072 |
| Ubuntu:26.10 | libxstream-java | no fix listed | UBUNTU-CVE-2024-47072 |
Affected products (as reported)
Weakness: CWE-121, CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/x-stream/xstream/security/advisories/GHSA-hfq9-hggm-c56q x_refsource_CONFIRM
- https://github.com/x-stream/xstream/commit/bb838ce2269cac47433e31c77b2b236466e9f266 x_refsource_MISC
- https://x-stream.github.io/CVE-2024-47072.html x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/12/msg00023.html