Vulnerability · Published Feb 18, 2025 · Assigned by mitre

CVE-2024-56171

High 7.8

In plain English

A high-severity use-after-free in libxml2 from xmlsoft. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)1.2%top 32.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libxml22.9.7-19.el8_10ALSA-2025:2686
AlmaLinux:9libxml22.9.13-6.el9_5.2ALSA-2025:2679
AlmaLinux:8libxml2-devel2.9.7-19.el8_10ALSA-2025:2686
AlmaLinux:9libxml2-devel2.9.13-6.el9_5.2ALSA-2025:2679
AlmaLinux:8python3-libxml22.9.7-19.el8_10ALSA-2025:2686
AlmaLinux:9python3-libxml22.9.13-6.el9_5.2ALSA-2025:2679
Alpine:v3.20libxml22.12.7-r1ALPINE-CVE-2024-56171
Alpine:v3.21libxml22.13.4-r4ALPINE-CVE-2024-56171
Alpine:v3.22libxml22.13.6-r0ALPINE-CVE-2024-56171
Alpine:v3.23libxml22.13.6-r0ALPINE-CVE-2024-56171
Alpine:v3.24libxml22.13.6-r0ALPINE-CVE-2024-56171
Debian:12libxml22.9.14+dfsg-1.3~deb12u2DSA-5949-1
Debian:12libxml22.9.14+dfsg-1.3~deb12u2DEBIAN-CVE-2024-56171
Debian:13libxml22.12.7+dfsg+really2.9.14-0.4DEBIAN-CVE-2024-56171
Debian:14libxml22.12.7+dfsg+really2.9.14-0.4DEBIAN-CVE-2024-56171
Rocky Linux:8libxml20:2.9.7-19.el8_10RLSA-2025:2686
Rocky Linux:9libxml20:2.9.13-6.el9_5.2RLSA-2025:2679
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.6USN-7302-1
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.6UBUNTU-CVE-2024-56171
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.2USN-7302-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.2UBUNTU-CVE-2024-56171

Affected products (as reported)

VendorProductVersions
xmlsoft libxml2 0 – before 2.12.102.13.0 – before 2.13.6

Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

References