# CVE-2022-40151: Stack Buffer Overflow in xstream

- Severity: Medium 6.5 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.37%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-16T10:00:20.584Z
- Modified: 2026-06-17T05:01:02.400Z
- Also known as: GHSA-f8cc-g7j8-xxpm
- Weaknesses: CWE-121, CWE-502, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- xstream xstream: from unspecified up to 1.4.19; before 1.4.20
- com.thoughtworks.xstream:xstream (Maven): before 1.4.20

## Every score

- Google: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367> (exploit, permissions-required, third-party-advisory, web)
- <https://github.com/x-stream/xstream/issues/304> (issue-tracking, third-party-advisory, web)
- <https://github.com/x-stream/xstream/security/advisories/GHSA-f8cc-g7j8-xxpm> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40151> (advisory)
- <https://github.com/x-stream/xstream/issues/314> (web)
- <https://github.com/x-stream/xstream> (package)
- <https://x-stream.github.io/CVE-2022-40151.html> (web)

## Sources

- CVE List: [CVE-2022-40151](https://www.cve.org/CVERecord?id=CVE-2022-40151), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-f8cc-g7j8-xxpm](https://github.com/advisories/GHSA-f8cc-g7j8-xxpm), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-40151](https://nvd.nist.gov/vuln/detail/CVE-2022-40151), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-40151 · Whole record: https://cve.day/CVE-2022-40151.json · Rebuilt by cve.day 2026-11-25T22:58:15.002Z
