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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libxml2 | 2.9.7-19.el8_10 | ALSA-2025:2686 |
| AlmaLinux:9 | libxml2 | 2.9.13-6.el9_5.2 | ALSA-2025:2679 |
| AlmaLinux:8 | libxml2-devel | 2.9.7-19.el8_10 | ALSA-2025:2686 |
| AlmaLinux:9 | libxml2-devel | 2.9.13-6.el9_5.2 | ALSA-2025:2679 |
| AlmaLinux:8 | python3-libxml2 | 2.9.7-19.el8_10 | ALSA-2025:2686 |
| AlmaLinux:9 | python3-libxml2 | 2.9.13-6.el9_5.2 | ALSA-2025:2679 |
| Alpine:v3.20 | libxml2 | 2.12.7-r1 | ALPINE-CVE-2024-56171 |
| Alpine:v3.21 | libxml2 | 2.13.4-r4 | ALPINE-CVE-2024-56171 |
| Alpine:v3.22 | libxml2 | 2.13.6-r0 | ALPINE-CVE-2024-56171 |
| Alpine:v3.23 | libxml2 | 2.13.6-r0 | ALPINE-CVE-2024-56171 |
| Alpine:v3.24 | libxml2 | 2.13.6-r0 | ALPINE-CVE-2024-56171 |
| Debian:12 | libxml2 | 2.9.14+dfsg-1.3~deb12u2 | DSA-5949-1 |
| Debian:12 | libxml2 | 2.9.14+dfsg-1.3~deb12u2 | DEBIAN-CVE-2024-56171 |
| Debian:13 | libxml2 | 2.12.7+dfsg+really2.9.14-0.4 | DEBIAN-CVE-2024-56171 |
| Debian:14 | libxml2 | 2.12.7+dfsg+really2.9.14-0.4 | DEBIAN-CVE-2024-56171 |
| Rocky Linux:8 | libxml2 | 0:2.9.7-19.el8_10 | RLSA-2025:2686 |
| Rocky Linux:9 | libxml2 | 0:2.9.13-6.el9_5.2 | RLSA-2025:2679 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.6 | USN-7302-1 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.6 | UBUNTU-CVE-2024-56171 |
| Ubuntu:24.04:LTS | libxml2 | 2.9.14+dfsg-1.3ubuntu3.2 | USN-7302-1 |
| Ubuntu:24.04:LTS | libxml2 | 2.9.14+dfsg-1.3ubuntu3.2 | UBUNTU-CVE-2024-56171 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/828
- https://security.netapp.com/advisory/ntap-20250328-0010/
- http://seclists.org/fulldisclosure/2025/Apr/13
- http://seclists.org/fulldisclosure/2025/Apr/10
- http://seclists.org/fulldisclosure/2025/Apr/9
- http://seclists.org/fulldisclosure/2025/Apr/8
- http://seclists.org/fulldisclosure/2025/Apr/5
- http://seclists.org/fulldisclosure/2025/Apr/4
- http://seclists.org/fulldisclosure/2025/Apr/12
- http://seclists.org/fulldisclosure/2025/Apr/11
- https://lists.debian.org/debian-lts-announce/2025/02/msg00028.html