{"id":"CVE-2022-40151","aliases":["GHSA-f8cc-g7j8-xxpm"],"url":"https://o3.security/vulnerability/CVE-2022-40151","summary":"Stack Buffer Overflow in xstream","details":"### 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)\n","published":"2022-09-16T10:00:20.584Z","modified":"2026-08-12T03:51:14.082017405Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"com.thoughtworks.xstream:xstream","fixedVersion":"1.4.20"}],"fix":null,"references":[{"type":"WEB","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40151.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40151"},{"type":"REPORT","url":"https://github.com/x-stream/xstream/issues/304"},{"type":"WEB","url":"https://github.com/x-stream/xstream/security/advisories/GHSA-f8cc-g7j8-xxpm"},{"type":"WEB","url":"https://github.com/x-stream/xstream/issues/314"},{"type":"PACKAGE","url":"https://github.com/x-stream/xstream"},{"type":"WEB","url":"https://x-stream.github.io/CVE-2022-40151.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:14.082017405Z"}}