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.
{
"cwe_ids": [
"CWE-611"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40896.json",
"cna_assigner": "mitre"
}{
"extracted_events": [
{
"introduced": "2.11.0"
},
{
"fixed": "2.11.9"
},
{
"introduced": "2.12.0"
},
{
"fixed": "2.12.9"
},
{
"introduced": "2.13.0"
},
{
"fixed": "2.13.3"
}
],
"cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}{
"extracted_events": [
{
"introduced": "2.11.0"
},
{
"fixed": "2.11.9"
},
{
"introduced": "2.12.0"
},
{
"fixed": "2.12.9"
},
{
"introduced": "2.13.0"
},
{
"fixed": "2.13.3"
}
],
"cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
]
}[
{
"signature_type": "Line",
"digest": {
"line_hashes": [
"226593095160989718580933120468166360739",
"24164626288106891637588310425951675567",
"136306041615198176511953925556784839741"
],
"threshold": 0.9
},
"target": {
"file": "parser.c"
},
"signature_version": "v1",
"id": "CVE-2024-40896-36665477",
"source": "https://gitlab.gnome.org/gnome/libxml2@1a8932303969907f6572b1b6aac4081c56adb5c6",
"deprecated": false
},
{
"target": {
"file": "parser.c",
"function": "xmlParseReference"
},
"digest": {
"function_hash": "82553749786656255912126799861154897360",
"length": 3301.0
},
"signature_type": "Function",
"signature_version": "v1",
"id": "CVE-2024-40896-4065f292",
"source": "https://gitlab.gnome.org/gnome/libxml2@1a8932303969907f6572b1b6aac4081c56adb5c6",
"deprecated": false
}
]
"2026-07-15T01:26:07Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40896.json"