CVE-2024-56171
libxml2: Use-After-Free in libxml2
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami, Julia, Photon OS. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Azure Linux (high), CBL-Mariner (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).
Description
libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a use-after-free in xmlSchemaIDCFillNodeTables and xmlSchemaBubbleIDCNodeTables in xmlschemas.c. To exploit this, a crafted XML document must be validated against an XML schema with certain identity constraints, or a crafted XML schema must be used.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | java, java-min, jre | 1.8.0, 8.0.461 |
| julia::Julia Ecosystem Security Advisories | XML2_jll | 2.13.6+1 |
| Photon OS 4.0 | gettext, libxml2, libxml2-devel and 1 more | 0.21-5.ph4 and 1 more |
| Photon OS 5.0 | gettext, libxml2, libxml2-devel and 1 more | 0.21.1-5.ph5 and 1 more |
| alma 8 | libxml2, libxml2-devel, python3-libxml2 | 2.9.7-19.el8_10 |
| alma 9 | libxml2, libxml2-devel, python3-libxml2 | 2.9.13-6.el9_5.2 |
| alpine 3.18 | libxml2 | 2.11.8-r1 |
| alpine 3.19 | libxml2 | 2.11.8-r1 |
| alpine 3.20 | libxml2 | 2.12.7-r1 |
| alpine 3.21 | libxml2 | 2.13.4-r4 |
| alpine 3.22 | libxml2 | 2.13.6-r0 |
| alpine 3.23 | libxml2 | 2.13.6-r0 |
Show all 136 entries from 62 sources
| Source | Package | Fixed in |
|---|---|---|
| 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.6+1 |
| Photon OS 4.0 | gettext | 0.21-5.ph4 |
| Photon OS 4.0 | libxml2 | 2.9.12-15.ph4 |
| Photon OS 4.0 | libxml2-devel | 2.9.12-15.ph4 |
| Photon OS 4.0 | python3-libxml2 | 2.9.12-15.ph4 |
| Photon OS 5.0 | gettext | 0.21.1-5.ph5 |
| Photon OS 5.0 | libxml2 | 2.12.10-1.ph5 |
| Photon OS 5.0 | libxml2-devel | 2.12.10-1.ph5 |
| Photon OS 5.0 | python3-libxml2 | 2.12.10-1.ph5 |
| alma 8 | libxml2 | 2.9.7-19.el8_10 |
| alma 8 | libxml2-devel | 2.9.7-19.el8_10 |
| alma 8 | python3-libxml2 | 2.9.7-19.el8_10 |
| alma 9 | libxml2 | 2.9.13-6.el9_5.2 |
| alma 9 | libxml2-devel | 2.9.13-6.el9_5.2 |
| alma 9 | python3-libxml2 | 2.9.13-6.el9_5.2 |
| alpine 3.18 | libxml2 | 2.11.8-r1 |
| alpine 3.19 | libxml2 | 2.11.8-r1 |
| alpine 3.20 | libxml2 | 2.12.7-r1 |
| alpine 3.21 | libxml2 | 2.13.4-r4 |
| alpine 3.22 | libxml2 | 2.13.6-r0 |
| alpine 3.23 | libxml2 | 2.13.6-r0 |
| alpine 3.24 | libxml2 | 2.13.6-r0 |
| alpine edge | libxml2 | 2.13.6-r0 |
| amazon linux 1 | libxml2 | 2.9.1-6.6.45.amzn1 |
| amazon linux 1 | libxml2-debuginfo | 2.9.1-6.6.45.amzn1 |
| amazon linux 1 | libxml2-devel | 2.9.1-6.6.45.amzn1 |
| amazon linux 1 | libxml2-python26 | 2.9.1-6.6.45.amzn1 |
| amazon linux 1 | libxml2-python27 | 2.9.1-6.6.45.amzn1 |
| amazon linux 1 | libxml2-static | 2.9.1-6.6.45.amzn1 |
| amazon linux 2 | libxml2 | 2.9.1-6.amzn2.5.16 |
| amazon linux 2 | libxml2-debuginfo | 2.9.1-6.amzn2.5.16 |
| amazon linux 2 | libxml2-devel | 2.9.1-6.amzn2.5.16 |
| amazon linux 2 | libxml2-python | 2.9.1-6.amzn2.5.16 |
| amazon linux 2 | libxml2-static | 2.9.1-6.amzn2.5.16 |
| amazon linux 2023 | libxml2 | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | libxml2-debuginfo | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | libxml2-debugsource | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | libxml2-devel | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | libxml2-static | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | python3-libxml2 | 2.10.4-1.amzn2023.0.9 |
| amazon linux 2023 | python3-libxml2-debuginfo | 2.10.4-1.amzn2023.0.9 |
| Azure Linux 3.0 | libxml2 | 0:2.11.5-4.azl3 |
| CBL-Mariner 2.0 | libxml2 | 0:2.10.4-6.cm2 |
| 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 |
| debian 11 | libxml2 | 2.9.10+dfsg-6.7+deb11u6 |
| debian 12 | libxml2 | 2.9.14+dfsg-1.3~deb12u2 |
| debian 13 | libxml2 | 2.12.7+dfsg+really2.9.14-0.4 |
| debian 14 | libxml2 | 2.12.7+dfsg+really2.9.14-0.4 |
| echo | libxml2 | 2.9.14+dfsg-1.3~deb12u2 |
| echo | libxml2-2.11.7 | 2.11.7+e1 |
| echo | libxml2-2.9.1 | 2.9.1+e1 |
| minimos | libxml2 | 2.13.6-r0 |
| Oracle Linux 7 | libxml2 | 2.9.1-6.0.5.el7_9.6 |
| Oracle Linux 7 | libxml2-devel | 2.9.1-6.0.5.el7_9.6 |
| Oracle Linux 7 | libxml2-python | 2.9.1-6.0.5.el7_9.6 |
| Oracle Linux 7 | libxml2-static | 2.9.1-6.0.5.el7_9.6 |
| Oracle Linux 8 | libxml2 | 2.9.7-19.el8_10 |
| Oracle Linux 8 | libxml2-devel | 2.9.7-19.el8_10 |
| Oracle Linux 8 | python3-libxml2 | 2.9.7-19.el8_10 |
| Oracle Linux 9 | libxml2 | 2.9.13-6.el9_5.2 |
| Oracle Linux 9 | libxml2-devel | 2.9.13-6.el9_5.2 |
| Oracle Linux 9 | python3-libxml2 | 2.9.13-6.el9_5.2 |
| rapidfort alpine 3.20 | libxml2 | 2.12.7-r1, 2.13.4-r4 |
| rapidfort alpine 3.21 | libxml2 | 2.13.4-r4 |
| rapidfort alpine 3.22 | libxml2 | 2.12.7-r1, 2.13.4-r4 |
| rapidfort alpine 3.23 | libxml2 | 2.12.7-r1, 2.13.4-r4 |
| rapidfort alpine 3.24 | libxml2 | 2.12.7-r1, 2.13.4-r4 |
| rapidfort amazon linux | rf-libxml2 | 2.10.4-13.rfal |
| rapidfort amazon linux | rf-libxml2-devel | 2.10.4-13.rfal |
| rapidfort amazon linux | rf-libxml2-static | 2.10.4-13.rfal |
| rapidfort amazon linux | rf-python3-libxml2 | 2.10.4-13.rfal |
| rapidfort amazon linux 2023 | libxml2 | 0:2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | libxml2-devel | 2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | libxml2-static | 2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | python3-libxml2 | 2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | rf-libxml2 | 0:2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | rf-libxml2-devel | 2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | rf-libxml2-static | 2.10.4-1.amzn2023.0.9 |
| rapidfort amazon linux 2023 | rf-python3-libxml2 | 2.10.4-1.amzn2023.0.9 |
| rapidfort debian 12 | libxml2 | 0:2.12.7+dfsg+really2.9.14-0.4 |
| rapidfort debian 12 | rf-libxml2 | 0:2.12.7+dfsg+really2.9.14-0.4 |
| rapidfort debian 13 | libxml2 | 0:2.12.7+dfsg+really2.9.14-0.4 |
| rapidfort debian 13 | rf-libxml2 | 0:2.12.7+dfsg+really2.9.14-0.4 |
| rapidfort fedora 41 | libxml2 | 0:2.12.10-1.fc41 |
| rapidfort fedora 41 | rf-libxml2 | 0:2.12.10-1.fc41 |
| rapidfort Oracle Linux 10 | libxml2 | 0:2.12.5-5.el10_0 |
| rapidfort Oracle Linux 10 | libxml2-devel | 0:2.12.5-5.el10_0 |
| rapidfort Oracle Linux 10 | python3-libxml2 | 0:2.12.5-5.el10_0 |
| rapidfort Oracle Linux 9 | libxml2 | 0:2.9.13-6.el9_5.2 |
| rapidfort Oracle Linux 9 | libxml2-devel | 0:2.9.13-6.el9_5.2 |
| rapidfort Oracle Linux 9 | python3-libxml2 | 0:2.9.13-6.el9_5.2 |
| rapidfort ubuntu 20.04 | libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| rapidfort ubuntu 20.04 | rf-libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| rapidfort ubuntu 22.04 | libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| rapidfort ubuntu 22.04 | rf-libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| rapidfort ubuntu 24.04 | libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| rapidfort ubuntu 24.04 | rf-libxml2 | 0:2.9.13+dfsg-1ubuntu0.6, 0:2.9.14+dfsg-1.3ubuntu3.2 |
| Red Hat | libxml2 | no fix listed |
| Red Hat | libxml2-devel | no fix listed |
| Red Hat | libxml2-python | no fix listed |
| Red Hat | libxml2-static | no fix listed |
| Red Hat | openshift/ose-rhel-coreos-8 | no fix listed |
| Red Hat | openshift/ose-rhel-coreos-9 | no fix listed |
| rocky 8 | libxml2 | 2.9.7-19.el8_10 |
| rocky 8 | python3-libxml2 | 2.9.7-19.el8_10 |
| rocky 9 | libxml2 | 2.9.13-6.el9_5.2 |
| rocky 9 | libxml2-devel | 2.9.13-6.el9_5.2 |
| rocky 9 | python3-libxml2 | 2.9.13-6.el9_5.2 |
| root.io debian 11 | rootio-libxml2 | 2.9.10+dfsg-6.7+deb11u6 |
| root.io debian 12 | libxml2 | 2.9.14+dfsg-1.3~deb12u2 |
| root.io debian 12 | rootio-libxml2 | 2.9.14+dfsg-1.3~deb12u2 |
| root.io debian 13 | rootio-libxml2 | 2.12.7+dfsg+really2.9.14-0.4 |
| seal debian | libxml2 | 2.9.14+dfsg-1.3~deb12u4+sp999 |
| seal debian | seal-libxml2 | 2.9.14+dfsg-1.3~deb12u4+sp999 |
| seal Red Hat 6 | libxml2 | 2.7.6-21.el6_8.1+sp999 |
| seal Red Hat 6 | seal-libxml2 | 2.7.6-21.el6_8.1+sp999 |
| seal Red Hat 7 | libxml2 | 2.9.1-6.el7_9.6+sp999 |
| seal Red Hat 7 | seal-libxml2 | 2.9.1-6.el7_9.6+sp999 |
| seal Red Hat 9 | libxml2 | 2.9.13-6.el9_4+sp999 |
| seal Red Hat 9 | seal-libxml2 | 2.9.13-6.el9_4+sp999 |
| ubuntu 16.04-ESM | libxml2 | 2.9.3+dfsg1-1ubuntu0.7+esm7 |
| ubuntu 18.04-ESM | libxml2 | 2.9.4+dfsg1-6.1ubuntu1.9+esm2 |
| ubuntu 20.04 | libxml2 | 2.9.10+dfsg-5ubuntu0.20.04.9 |
| ubuntu 20.04-ESM | libxml2 | 2.9.10+dfsg-5ubuntu0.20.04.9 |
| ubuntu 22.04 | libxml2 | 2.9.13+dfsg-1ubuntu0.6 |
| ubuntu 24.04 | libxml2 | 2.9.14+dfsg-1.3ubuntu3.2 |
| ubuntu 24.10 | libxml2 | 2.12.7+dfsg-3ubuntu0.2 |
| ubuntu 25.04 | libxml2 | 2.12.7+dfsg+really2.9.14-0.2ubuntu4 |
References
- http://seclists.org/fulldisclosure/2025/Apr/10
- http://seclists.org/fulldisclosure/2025/Apr/11
- http://seclists.org/fulldisclosure/2025/Apr/12
- http://seclists.org/fulldisclosure/2025/Apr/13
- http://seclists.org/fulldisclosure/2025/Apr/4
- http://seclists.org/fulldisclosure/2025/Apr/5
- http://seclists.org/fulldisclosure/2025/Apr/8
- http://seclists.org/fulldisclosure/2025/Apr/9
All 28 references
- https://access.redhat.com/errata/RHSA-2025:2679
- https://access.redhat.com/security/cve/CVE-2024-56171
- https://bugzilla.redhat.com/2346416
- https://bugzilla.redhat.com/2346421
- https://bugzilla.redhat.com/show_bug.cgi?id=2346416
- https://bugzilla.redhat.com/show_bug.cgi?id=2346421
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-56171
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-24928
- https://errata.almalinux.org/9/ALSA-2025-2679.html
- https://errata.rockylinux.org/RLSA-2025:2679
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/828
- https://linux.oracle.com/cve/CVE-2024-56171.html
- https://linux.oracle.com/errata/ELSA-2025-2686.html
- https://lists.debian.org/debian-lts-announce/2025/02/msg00028.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-56171
- https://security.netapp.com/advisory/ntap-20250328-0010/
- https://ubuntu.com/security/notices/USN-7302-1
- https://www.cve.org/CVERecord?id=CVE-2024-56171
- https://www.openwall.com/lists/oss-security/2025/02/18/2