# CVE-2022-40152: Stack Buffer Overflow in Woodstox

- 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): 18.2%, higher than 97% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-16T10:00:22.101Z
- Modified: 2026-09-10T03:49:55.751Z
- Also known as: GHSA-3f7h-mf4q-vrm4
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Google

## Description

Those using Woodstox to parse XML data may be vulnerable to Denial of Service attacks (DOS) if DTD support is enabled. 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 Woodstox: from unspecified before 6.4.0; from unspecified before 5.4.0
- com.fasterxml.woodstox:woodstox-core (Maven): from 6.0.0 before 6.4.0; before 5.4.0
- xstream xstream: before 1.4.20
- fasterxml woodstox: before 5.4.0; from 6.0.0 before 6.4.0

## 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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/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=47434> (exploit, permissions-required, third-party-advisory, web)
- <https://github.com/x-stream/xstream/issues/304> (issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40152> (advisory)
- <https://github.com/FasterXML/woodstox/issues/157> (web)
- <https://github.com/FasterXML/woodstox/issues/160> (web)
- <https://github.com/FasterXML/woodstox/pull/159> (web)
- <https://github.com/FasterXML/woodstox> (package)

## Sources

- CVE List: [CVE-2022-40152](https://www.cve.org/CVERecord?id=CVE-2022-40152), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-3f7h-mf4q-vrm4](https://github.com/advisories/GHSA-3f7h-mf4q-vrm4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-40152](https://nvd.nist.gov/vuln/detail/CVE-2022-40152), Public domain, modified 2026-06-17

---

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