CVE-2024-40896
libxml2: XXE vulnerability
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | libxml2 | 0:2.11.5-2.azl3 |
| bitnami::Bitnami Vulnerability Database | java, java-min, jre | 1.8.0, 8.0.461 |
| julia::Julia Ecosystem Security Advisories | XML2_jll | 2.13.3+0 |
| Photon OS 5.0 | libxml2, libxml2-devel, python3-libxml2 | 2.12.6-3.ph5 |
| chainguard | openjdk-11-openj9, openjdk-17-openj9, openjdk-21-openj9 and 3 more | 0.53.0-r0 and 2 more |
| echo | libxml2-2.11.7, libxml2-2.9.1 | 2.11.7+e1 and 1 more |
| rapidfort alpine 3.20 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.21 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.22 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.23 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.24 | libxml2 | 2.12.8-r0 |
| rapidfort fedora 41 | libxml2, rf-libxml2 | 0:2.12.9-1.fc41 |
Show all 24 entries from 13 sources
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | libxml2 | 0:2.11.5-2.azl3 |
| bitnami::Bitnami Vulnerability Database | java | 1.8.0, 8.0.461 |
| bitnami::Bitnami Vulnerability Database | java-min | 1.8.0, 8.0.461 |
| bitnami::Bitnami Vulnerability Database | jre | 1.8.0, 8.0.461 |
| julia::Julia Ecosystem Security Advisories | XML2_jll | 2.13.3+0 |
| Photon OS 5.0 | libxml2 | 2.12.6-3.ph5 |
| Photon OS 5.0 | libxml2-devel | 2.12.6-3.ph5 |
| Photon OS 5.0 | python3-libxml2 | 2.12.6-3.ph5 |
| chainguard | openjdk-11-openj9 | 0.53.0-r0 |
| chainguard | openjdk-17-openj9 | 0.53.0-r0 |
| chainguard | openjdk-21-openj9 | 0.53.0-r0 |
| chainguard | openjdk-25-openj9 | 0.59.0-r1 |
| chainguard | openjdk-26-openj9 | 0.59.0-r1 |
| chainguard | openjdk-8-openj9 | 0.53.0-r1 |
| echo | libxml2-2.11.7 | 2.11.7+e1 |
| echo | libxml2-2.9.1 | 2.9.1+e1 |
| rapidfort alpine 3.20 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.21 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.22 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.23 | libxml2 | 2.12.8-r0 |
| rapidfort alpine 3.24 | libxml2 | 2.12.8-r0 |
| rapidfort fedora 41 | libxml2 | 0:2.12.9-1.fc41 |
| rapidfort fedora 41 | rf-libxml2 | 0:2.12.9-1.fc41 |
| ubuntu 24.10 | libxml2 | 2.12.7+dfsg-3ubuntu0.1 |
References
- https://access.redhat.com/security/cve/CVE-2024-40896
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/1a8932303969907f6572b1b6aac4081c56adb5c6
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/761
- https://linux.oracle.com/cve/CVE-2024-40896.html
- https://linux.oracle.com/errata/ELBA-2025-6597.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-40896
- https://security.netapp.com/advisory/ntap-20250228-0004/
- https://ubuntu.com/security/notices/USN-7215-1