{"id":"CVE-2024-47072","aliases":["CVE-2024-47072","GHSA-hfq9-hggm-c56q"],"related":[],"kind":"vulnerability","state":"published","title":"XStream is vulnerable to a Denial of Service attack due to stack overflow from a manipulated binary input stream","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe 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.\n\n### Patches\nXStream 1.4.21 detects the manipulation in the binary input stream causing the the stack overflow and raises an InputManipulationException instead.\n\n### Workarounds\nThe only solution is to catch the StackOverflowError in the client code calling XStream if XStream is configured to use the BinaryStreamDriver.\n\n### References\nSee full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for [CVE-2024-47072](https://x-stream.github.io/CVE-2024-47072.html).\n\n### Credits\nAlexis Challande of Trail Of Bits found and reported the issue to XStream and provided the required information to reproduce it.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-11-07T21:51:17.000Z","modified":"2026-08-07T08:12:24.322Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-121","CWE-502"],"affected":[{"ranges":[{"version":"< 1.4.21","status":"affected"}],"vendor":"x-stream","product":"xstream","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.4.21","status":"affected"}],"vendor":"x-stream","product":"x-stream","cpe":"cpe:2.3:a:x-stream:x-stream:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.21"}],"ecosystem":"Maven","package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"ghsa"}],"references":[{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-hfq9-hggm-c56q","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/x-stream/xstream/commit/bb838ce2269cac47433e31c77b2b236466e9f266","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://x-stream.github.io/CVE-2024-47072.html","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00023.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47072","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/x-stream/xstream/commit/fdd9f7d3de0d7ccf2f9979bcd09fbf3e6a0c881a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/x-stream/xstream","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-11-08T15:17:42.864Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47072","url":"https://www.cve.org/CVERecord?id=CVE-2024-47072","licence":"CVE Terms of Use","modified":"2025-11-03T22:19:56.488Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hfq9-hggm-c56q","url":"https://github.com/advisories/GHSA-hfq9-hggm-c56q","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:24.322Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47072","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47072","licence":"Public domain","modified":"2026-06-17T07:56:29.670Z"}],"updatedAt":"2026-11-25T22:58:47.892Z","epss":{"score":0.02001,"percentile":0.81351,"date":"2026-12-01T12:00:22.000Z"}}