cve.bz

CVE-2024-40896

9.1 criticalEPSS 1.2%

Critical (9.1). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-12-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-40896 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-40896?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-40896?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-40896 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libxml2from 2.11.0 before 2.11.9
libxml2from 2.12.0 before 2.12.9
libxml2from 2.13.0 before 2.13.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:10.0libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-5.el10_0RHBA-2025:6597
SUSELinux Micro 6.0libxml22.11.6-4.1SUSE-SU-2025:20116-1
SUSELinux Micro 6.1libxml22.11.6-slfo.1.1_5.1SUSE-SU-2025:20418-1
SUSEPackage Hub 15 SP6qt6-webengine, qt6-webengine-docs6.6.3-bp156.2.3.1openSUSE-SU-2025:0024-1
openSUSELeap 15.6qt6-webengine, qt6-webengine-docs6.6.3-bp156.2.3.1openSUSE-SU-2025:0024-1
openSUSETumbleweedlibxml22.12.9-1.1openSUSE-SU-2024:14241-1
openSUSETumbleweedqt6-webengine6.8.1-2.1openSUSE-SU-2024:14611-1
Azure Linux3libxml22.11.5-2AZL-54657
Alpaquitastreamlibxml22.13.4-r0BELL-CVE-2024-40896
BellSoft Hardened Containersstreamlibxml22.13.4-r0BELL-CVE-2024-40896

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is marked as critical severity instead of important due to its potential to completely compromise system security. By exploiting the XXE vulnerability, an attacker can achieve arbitrary file disclosure (e.g., reading `/etc/passwd`), which exposes sensitive system information and credentials.

In worst-case scenarios, the flaw can lead to Remote Code Execution (RCE) in misconfigured environments or cause a Denial of Service (DoS) through resource exhaustion. The issue is especially critical because it stems from a broken protection mechanism (due to the renaming of the "checked" member), silently leaving downstream applications vulnerable without their knowledge.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libxml2-0:2.12.5-5.el10_0Fixed 2025-05-13RHBA-2025:6597
Red Hat Enterprise Linux 6libxml2Not affected
Red Hat Enterprise Linux 7libxml2Not affected
Red Hat Enterprise Linux 8libxml2Not affected
Red Hat Enterprise Linux 9libxml2Not affected
Red Hat JBoss Core Serviceslibxml2Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-40896.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON