cve.bz

CVE-2024-56171 Use After Free

9.8 criticalEPSS 1.2%

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

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

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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; 68th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-19. 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-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-56171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56171?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56171?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-56171 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
xmlsoft libxml2before 2.12.10
xmlsoft libxml2from 2.13.0 before 2.13.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libxml22.9.10+dfsg-6.7+deb11u6DLA-4064-1
Debian12libxml22.9.14+dfsg-1.3~deb12u2DEBIAN-CVE-2024-56171 DSA-5949-1
Debian13, 14libxml22.12.7+dfsg+really2.9.14-0.4DEBIAN-CVE-2024-56171
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.9UBUNTU-CVE-2024-56171 USN-7302-1
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.6UBUNTU-CVE-2024-56171 USN-7302-1
Ubuntu24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.2UBUNTU-CVE-2024-56171 USN-7302-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm7UBUNTU-CVE-2024-56171 USN-7302-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm7UBUNTU-CVE-2024-56171 USN-7302-1
UbuntuPro:18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.9+esm2UBUNTU-CVE-2024-56171 USN-7302-1
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-19.el8_10RHSA-2025:2686
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-19.el8_10RHSA-2025:2686
Red Hatenterprise_linux:9::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-6.el9_5.2RHSA-2025:2679
Red Hatenterprise_linux:9::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.13-6.el9_5.2RHSA-2025:2679
Red Hatenterprise_linux:10.0libxml2, libxml2-devel, libxml2-static and 4 more0:2.12.5-5.el10_0RHBA-2025:6597
Red Hatrhel_aus:8.2::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_2.1RHSA-2025:2654
Red Hatrhel_aus:8.2::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_2.1RHSA-2025:2654
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.5RHSA-2025:2660
Red Hatrhel_aus:8.4::baseos, rhel_e4s:8.4::baseos, rhel_tus:8.4::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.5RHSA-2025:2660
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-13.el8_6.8RHSA-2025:2513
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-13.el8_6.8RHSA-2025:2513
Red Hatrhel_e4s:9.0::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.13-1.el9_0.4RHSA-2025:2483
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.2 and 2 morelibxml2, python-libxml2-python2.9.7-150000.3.76.1SUSE-SU-2025:0976-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morelibxml2, libxml2-python2.9.14-150400.5.38.1SUSE-SU-2025:0748-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 3 morelibxml2, libxml2-python2.10.3-150500.5.23.1SUSE-SU-2025:0746-1
SUSELinux Enterprise Micro 5.1libxml22.9.7-150000.3.76.1SUSE-SU-2025:0976-1
SUSELinux Enterprise Module for Python 3 15 SP6libxml2-python2.10.3-150500.5.23.1SUSE-SU-2025:0746-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libxml2, python-libxml22.9.4-46.81.1SUSE-SU-2025:0747-1
SUSELinux Micro 6.0libxml22.11.6-5.1SUSE-SU-2025:20177-1
SUSELinux Micro 6.1libxml22.11.6-slfo.1.1_2.1SUSE-SU-2025:20274-1
openSUSELeap 15.6libxml2, libxml2-python2.10.3-150500.5.23.1SUSE-SU-2025:0746-1
openSUSELeap 15.6python-libxml2-python2.9.7-150000.3.76.1SUSE-SU-2025:0976-1
openSUSETumbleweedlibxml22.13.6-1.1openSUSE-SU-2025:14830-1
AlmaLinux8libxml2, libxml2-devel, python3-libxml22.9.7-19.el8_10ALSA-2025:2686
AlmaLinux9libxml2, libxml2-devel, python3-libxml22.9.13-6.el9_5.2ALSA-2025:2679
Rocky Linux8libxml20:2.9.7-19.el8_10RLSA-2025:2686
Rocky Linux9libxml20:2.9.13-6.el9_5.2RLSA-2025:2679
Alpinev3.18, v3.19libxml22.11.8-r1ALPINE-CVE-2024-56171
Alpinev3.20libxml22.12.7-r1ALPINE-CVE-2024-56171
Alpinev3.21libxml22.13.4-r4ALPINE-CVE-2024-56171
Alpinev3.22, v3.23, v3.24libxml22.13.6-r0ALPINE-CVE-2024-56171
Azure Linux2libxml22.10.4-6AZL-56925
Azure Linux3libxml22.11.5-4AZL-57010
Alpaquita23libxml22.10.4-r2BELL-CVE-2024-56171
Alpaquitastreamlibxml22.13.6-r0BELL-CVE-2024-56171
BellSoft Hardened Containers23libxml22.10.4-r2BELL-CVE-2024-56171
BellSoft Hardened Containersstreamlibxml22.13.6-r0BELL-CVE-2024-56171

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 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: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as important because it involves a use-after-free flaw in the xmlSchemaIDCFillNodeTables and xmlSchemaBubbleIDCNodeTables functions. A maliciously crafted XML document or schema, containing specific identity constraints, can be used to trigger this vulnerability and potentially gain unauthorized access or cause a denial-of-service condition.

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 7 Extended Lifecycle Supportlibxml2-0:2.9.1-6.el7_9.9Fixed 2025-03-12RHSA-2025:2673
Red Hat Enterprise Linux 8libxml2-0:2.9.7-19.el8_10Fixed 2025-03-12RHSA-2025:2686
Red Hat Enterprise Linux 8.2 Advanced Update Supportlibxml2-0:2.9.7-9.el8_2.1Fixed 2025-03-11RHSA-2025:2654
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-9.el8_4.5Fixed 2025-03-11RHSA-2025:2660
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicelibxml2-0:2.9.7-9.el8_4.5Fixed 2025-03-11RHSA-2025:2660
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionslibxml2-0:2.9.7-9.el8_4.5Fixed 2025-03-11RHSA-2025:2660
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibxml2-0:2.9.7-13.el8_6.8Fixed 2025-03-10RHSA-2025:2513
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicelibxml2-0:2.9.7-13.el8_6.8Fixed 2025-03-10RHSA-2025:2513
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionslibxml2-0:2.9.7-13.el8_6.8Fixed 2025-03-10RHSA-2025:2513
Red Hat Enterprise Linux 8.8 Extended Update Supportlibxml2-0:2.9.7-16.el8_8.7Fixed 2025-03-10RHSA-2025:2507
Red Hat Enterprise Linux 9libxml2-0:2.9.13-6.el9_5.2Fixed 2025-03-12RHSA-2025:2679
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibxml2-0:2.9.13-1.el9_0.4Fixed 2025-03-10RHSA-2025:2483
Red Hat Enterprise Linux 9.2 Extended Update Supportlibxml2-0:2.9.13-3.el9_2.6Fixed 2025-03-10RHSA-2025:2482
Red Hat Enterprise Linux 9.4 Extended Update Supportlibxml2-0:2.9.13-9.el9_4Fixed 2025-03-12RHSA-2025:2678
Red Hat JBoss Core Services 2.4.62libxml2Fixed 2025-04-02RHSA-2025:3453
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202503310142-0Fixed 2025-04-10RHSA-2025:3573
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202503112237-0Fixed 2025-03-20RHSA-2025:2701
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202504010153-0Fixed 2025-04-09RHSA-2025:3569
Red Hat Enterprise Linux 6libxml2Out of support scope
235 more in the JSON and on Red Hat's page.

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-56171.

References

Check your stackJSON