CVE-2024-40896

published 23 Dec 2024 · updated 16 Nov 2026

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.

9.1CriticalCVSS 9.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.11.9, 2.12.9 and 2.13.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
libxml2>=2.11.0 <2.11.9, >=2.12.0 <2.12.9, >=2.13.0 <2.13.32.11.9, 2.12.9, 2.13.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-40896 severity on Zeptric[![CVE-2024-40896](https://zeptric.io/badge/cve/CVE-2024-40896.svg)](https://zeptric.io/cve/CVE-2024-40896)