CVE-2024-40896

Source
https://cve.org/CVERecord?id=CVE-2024-40896
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40896.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-40896
Aliases
Downstream
Related
Published
2024-12-23T00:00:00Z
Modified
2026-08-12T15:16:02.055812Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-611"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40896.json",
    "cna_assigner": "mitre"
}
References

Affected packages

Git / github.com/gnome/libxml2

Affected ranges

Type
GIT
Repo
https://github.com/gnome/libxml2
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
    "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"
        }
    ],
    "source": "CPE_RANGE"
}
Type
GIT
Repo
https://gitlab.gnome.org/gnome/libxml2
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*",
    "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"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v2.*
v2.11.0
v2.11.1
v2.11.2
v2.11.3
v2.11.4
v2.11.5
v2.11.6
v2.11.7
v2.11.8
v2.12.0
v2.12.1
v2.12.2
v2.12.3
v2.12.4
v2.12.5
v2.12.6
v2.12.7
v2.12.8
v2.13.0
v2.13.1
v2.13.2

Database specific

vanir_signatures_modified
"2026-08-12T15:16:02Z"
vanir_signatures
[
    {
        "id": "CVE-2024-40896-36665477",
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "226593095160989718580933120468166360739",
                "24164626288106891637588310425951675567",
                "136306041615198176511953925556784839741"
            ]
        },
        "source": "https://gitlab.gnome.org/gnome/libxml2@1a8932303969907f6572b1b6aac4081c56adb5c6",
        "target": {
            "file": "parser.c"
        }
    },
    {
        "id": "CVE-2024-40896-4065f292",
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 3301.0,
            "function_hash": "82553749786656255912126799861154897360"
        },
        "source": "https://gitlab.gnome.org/gnome/libxml2@1a8932303969907f6572b1b6aac4081c56adb5c6",
        "target": {
            "function": "xmlParseReference",
            "file": "parser.c"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40896.json"