Skip to content
OpenAdvisories
High · 7.8 CVE-2025-24928 EUVD-2025-4764GHSA-fgfv-9xqc-v794

libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in xmlSnprintfElements in valid.c. To exploit this, DTD v…

Published Feb 18, 2025 · Updated Feb 26, 2026 · Assigned by mitre

Description

libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in xmlSnprintfElements in valid.c. To exploit this, DTD validation must occur for an untrusted document or untrusted DTD. NOTE: this is similar to CVE-2017-9047.

Affected products

VendorProductAffectedFixed
xmlsoft libxml2 < 2.12.10, 2.13.0 – < 2.13.6 2.12.10

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libxml2 2.12.7+dfsg+really2.9.14-0.4 —
Debian 13 libxml2 2.12.7+dfsg+really2.9.14-0.4 —
Debian 12 libxml2 2.9.14+dfsg-1.3~deb12u2 DSA-5949-1
Debian 11 libxml2 2.9.10+dfsg-6.7+deb11u6 DLA-4064-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libxml2 2.9.14+dfsg-1.3ubuntu3.2 USN-7302-1
Ubuntu 22.04 LTS libxml2 2.9.13+dfsg-1ubuntu0.6 USN-7302-1
Ubuntu 20.04 LTS libxml2 2.9.10+dfsg-5ubuntu0.20.04.9 USN-7302-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm2 USN-7302-1
Ubuntu Pro 16.04 LTS libxml2 2.9.3+dfsg1-1ubuntu0.7+esm7 USN-7302-1
Ubuntu Pro 14.04 LTS libxml2 2.9.1+dfsg1-3ubuntu4.13+esm7 USN-7302-1
ReleasePackageFixed inAdvisory
RHEL 10 libxml2 +3 2.12.5-5.el10_0 RHBA-2025:6597
RHEL 9 libxml2 +2 2.9.13-6.el9_5.2 RHSA-2025:2679
RHEL 8 libxml2 +2 2.9.7-19.el8_10 RHSA-2025:2686
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS libxml2 +2 2.9.13-9.el9_4 RHSA-2025:2678
RHEL 9.2 EUS libxml2 +2 2.9.13-3.el9_2.6 RHSA-2025:2482
RHEL 9.0 E4S libxml2 +2 2.9.13-1.el9_0.4 RHSA-2025:2483
RHEL 8.8 EUS libxml2 +2 2.9.7-16.el8_8.7 RHSA-2025:2507
RHEL 8.6 TUS libxml2 +2 2.9.7-13.el8_6.8 RHSA-2025:2513
RHEL 8.6 E4S libxml2 +2 2.9.7-13.el8_6.8 RHSA-2025:2513
RHEL 8.6 AUS libxml2 +2 2.9.7-13.el8_6.8 RHSA-2025:2513
RHEL 8.4 TUS libxml2 +2 2.9.7-9.el8_4.5 RHSA-2025:2660
RHEL 8.4 E4S libxml2 +2 2.9.7-9.el8_4.5 RHSA-2025:2660
RHEL 8.4 AUS libxml2 +2 2.9.7-9.el8_4.5 RHSA-2025:2660
RHEL 8.2 AUS libxml2 +2 2.9.7-9.el8_2.1 RHSA-2025:2654
RHEL 7 ELS libxml2 +3 2.9.1-6.el7_9.9 RHSA-2025:2673

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libxml2 +2 2.9.13-6.el9_5.2 ALSA-2025:2679
AlmaLinux 8 libxml2 +2 2.9.7-19.el8_10 ALSA-2025:2686

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libxml2 2.9.13-6.el9_5.2 RLSA-2025:2679
Rocky Linux 8 libxml2 2.9.7-19.el8_10 RLSA-2025:2686
ReleasePackageFixed inAdvisory
SLES 15 SP6 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLES 15 SP5 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLES 15 SP4 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SLES 15 SP3 libxml2 +1 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
SLES 12 SP5 libxml2 +1 2.9.4-46.81.1 SUSE-SU-2025:0747-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 3 libxml2-python 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLES for SAP 15 SP5 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLES for SAP 15 SP4 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SLES for SAP 15 SP3 libxml2 +1 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
SLE Micro 6.1 libxml2 2.11.6-slfo.1.1_2.1 SUSE-SU-2025:20274-1
SLE Micro 6.0 libxml2 2.11.6-5.1 SUSE-SU-2025:20177-1
SLE Micro 5.5 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLE Micro 5.4 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SLE Micro 5.3 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SLE Micro 5.2 libxml2 +1 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
SLE Micro 5.1 libxml2 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
SLE HPC 15 SP5 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
SLE HPC 15 SP4 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SLE HPC 15 SP3 libxml2 +1 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
SUSE Manager Server 4.3 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SUSE Manager Proxy 4.3 libxml2 +1 2.9.14-150400.5.38.1 SUSE-SU-2025:0748-1
SUSE Enterprise Storage 7.1 libxml2 +1 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libxml2 2.13.6-1.1 openSUSE-SU-2025:14830-1
openSUSE Tumbleweed python-lxml 5.3.2-1.1 openSUSE-SU-2025:14999-1
openSUSE Leap 15.6 libxml2 +1 2.10.3-150500.5.23.1 SUSE-SU-2025:0746-1
openSUSE Leap 15.6 python-libxml2-python 2.9.7-150000.3.76.1 SUSE-SU-2025:0976-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libxml2 2.13.6-r0 —
Alpine v3.24 qt6-qtwebengine 6.10.0-r1 —
Alpine v3.23 libxml2 2.13.6-r0 —
Alpine v3.23 qt6-qtwebengine 6.10.0-r1 —
Alpine v3.22 libxml2 2.13.6-r0 —
Alpine v3.22 qt6-qtwebengine 6.8.3-r5 —
Alpine v3.21 libxml2 2.13.4-r4 —
Alpine v3.20 libxml2 2.12.7-r1 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libxml2 2.11.8-r1 —
Alpine v3.18 libxml2 2.11.8-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libxml2 +3 2.10.4-1.amzn2023.0.9 ALAS2023-2025-896
Amazon Linux 2 libxml2 +3 2.9.1-6.amzn2.5.16 ALAS2-2025-2794

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libxml2 2.11.5-4 —
Azure Linux 2 (CBL-Mariner) libxml2 2.10.4-6 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libxml2 +2 2.9.13-6.el9_5.2 ELSA-2025-2679
Oracle Linux 8 libxml2 +2 2.9.7-19.el8_10 ELSA-2025-2686
Oracle Linux 7 libxml2 +3 2.9.1-6.0.5.el7_9.6 ELSA-2025-2673

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openjdk-7-jre No fix yet —

Advisories 40

References