{"id":"CVE-2022-40151","aliases":["CVE-2022-40151","GHSA-f8cc-g7j8-xxpm"],"related":[],"kind":"vulnerability","state":"published","title":"Stack Buffer Overflow in xstream","summary":"Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.","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.\n\n### Patches\nXStream 1.4.20 handles 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.\n\n### References\nSee full information about the nature of the vulnerability and the steps to reproduce it in XStream's documentation for [CVE-2022-40151](https://x-stream.github.io/CVE-2022-40151.html).\n\n### Credits\nThe vulnerability was discovered and reported by Henry Lin of the Google OSS-Fuzz team.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [XStream](https://github.com/x-stream/xstream/issues)\n* Contact us at [XStream Google Group](https://groups.google.com/group/xstream-user)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Los que usan Xstream para seralizar datos XML pueden ser vulnerables a ataques de Denegación de Servicio (DOS). Si el analizador es ejecutado con la entrada suministrada por el usuario, un atacante puede suministrar contenido que cause el bloqueo del analizador por desbordamiento de pila. Este efecto puede soportar un ataque de denegación de servicio","source":"nvd"}],"published":"2022-09-16T10:00:20.584Z","modified":"2026-06-17T05:01:02.400Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"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":"NVD","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"}],"cwes":["CWE-121","CWE-502","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"1.4.19","status":"affected"}],"vendor":"xstream","product":"xstream","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.20"}],"ecosystem":"Maven","package":"com.thoughtworks.xstream:xstream","purl":"pkg:maven/com.thoughtworks.xstream/xstream","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.4.20"}],"vendor":"xstream","product":"xstream","cpe":"cpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367","tags":["exploit","permissions-required","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/x-stream/xstream/issues/304","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/x-stream/xstream/security/advisories/GHSA-f8cc-g7j8-xxpm","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40151","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/x-stream/xstream/issues/314","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/x-stream/xstream","tags":["package"],"sources":["ghsa"]},{"url":"https://x-stream.github.io/CVE-2022-40151.html","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-21T13:39:18.356Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-40151","url":"https://www.cve.org/CVERecord?id=CVE-2022-40151","licence":"CVE Terms of Use","modified":"2025-04-21T13:49:35.282Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8cc-g7j8-xxpm","url":"https://github.com/advisories/GHSA-f8cc-g7j8-xxpm","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:22.920Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-40151","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40151","licence":"Public domain","modified":"2026-06-17T05:01:02.400Z"}],"updatedAt":"2026-11-25T22:58:15.002Z","epss":{"score":0.0237,"percentile":0.8429,"date":"2026-12-01T12:00:22.000Z"}}