7.5high
XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.00% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hfq9-hggm-c56q
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
| Product or package | Versions | Reported by |
|---|---|---|
| x-stream xstream | < 1.4.21 | CVE List |
| x-stream x-stream | before 1.4.21 | CVE List |
| com.thoughtworks.xstream:xstream (Maven) | before 1.4.21 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The 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.
Patches
XStream 1.4.21 detects the manipulation in the binary input stream causing the the stack overflow and raises an InputManipulationException instead.
Workarounds
The only solution is to catch the StackOverflowError in the client code calling XStream if XStream is configured to use the BinaryStreamDriver.
References
See full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for CVE-2024-47072.
Credits
Alexis Challande of Trail Of Bits found and reported the issue to XStream and provided the required information to reproduce it.
NVD (es)
XStream es una librería sencilla para serializar objetos en formato XML y viceversa. Esta vulnerabilidad puede permitir que un atacante remoto finalice la aplicación con un error de desbordamiento de pila que resulte en una denegación de servicio solo al manipular el flujo de entrada procesado cuando XStream está configurado para usar BinaryStreamDriver. Se ha aplicado un parche a XStream 1.4.21 para detectar la manipulación en el flujo de entrada binario que causa el desbordamiento de pila y genera una InputManipulationException en su lugar. Se recomienda a los usuarios que actualicen la versión. Los usuarios que no puedan actualizar la versión pueden detectar el StackOverflowError en el código del cliente que llama a XStream si XStream está configurado para usar BinaryStreamDriver.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-47072 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hfq9-hggm-c56q changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2024-47072 changed 2026-06-17 | Public domain |