Vulnerabilities / CVE-2024-40896

critical

CVE-2024-40896

libxml2: XXE vulnerability

Published Modified CWE 611
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Julia9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by Red Hat, Azure Linux, Bitnami, Julia, Oracle, Photon OS. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0libxml20:2.11.5-2.azl3
bitnami::Bitnami Vulnerability Databasejava, java-min, jre1.8.0, 8.0.461
julia::Julia Ecosystem Security AdvisoriesXML2_jll2.13.3+0
Photon OS 5.0libxml2, libxml2-devel, python3-libxml22.12.6-3.ph5
chainguardopenjdk-11-openj9, openjdk-17-openj9, openjdk-21-openj9 and 3 more0.53.0-r0 and 2 more
echolibxml2-2.11.7, libxml2-2.9.12.11.7+e1 and 1 more
rapidfort alpine 3.20libxml22.12.8-r0
rapidfort alpine 3.21libxml22.12.8-r0
rapidfort alpine 3.22libxml22.12.8-r0
rapidfort alpine 3.23libxml22.12.8-r0
rapidfort alpine 3.24libxml22.12.8-r0
rapidfort fedora 41libxml2, rf-libxml20:2.12.9-1.fc41
Show all 24 entries from 13 sources
SourcePackageFixed in
Azure Linux 3.0libxml20:2.11.5-2.azl3
bitnami::Bitnami Vulnerability Databasejava1.8.0, 8.0.461
bitnami::Bitnami Vulnerability Databasejava-min1.8.0, 8.0.461
bitnami::Bitnami Vulnerability Databasejre1.8.0, 8.0.461
julia::Julia Ecosystem Security AdvisoriesXML2_jll2.13.3+0
Photon OS 5.0libxml22.12.6-3.ph5
Photon OS 5.0libxml2-devel2.12.6-3.ph5
Photon OS 5.0python3-libxml22.12.6-3.ph5
chainguardopenjdk-11-openj90.53.0-r0
chainguardopenjdk-17-openj90.53.0-r0
chainguardopenjdk-21-openj90.53.0-r0
chainguardopenjdk-25-openj90.59.0-r1
chainguardopenjdk-26-openj90.59.0-r1
chainguardopenjdk-8-openj90.53.0-r1
echolibxml2-2.11.72.11.7+e1
echolibxml2-2.9.12.9.1+e1
rapidfort alpine 3.20libxml22.12.8-r0
rapidfort alpine 3.21libxml22.12.8-r0
rapidfort alpine 3.22libxml22.12.8-r0
rapidfort alpine 3.23libxml22.12.8-r0
rapidfort alpine 3.24libxml22.12.8-r0
rapidfort fedora 41libxml20:2.12.9-1.fc41
rapidfort fedora 41rf-libxml20:2.12.9-1.fc41
ubuntu 24.10libxml22.12.7+dfsg-3ubuntu0.1

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.