Vulnerability · Published Jun 16, 2025 · Assigned by redhat

CVE-2025-49794Libxml: heap use after free (uaf) leads to denial of service (dos)

Critical 9.1

In plain English

A critical-severity security flaw in libxml2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.8%top 42.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A use-after-free vulnerability was found in libxml2. This issue occurs when parsing XPath elements under certain circumstances when the XML schematron has the <sch:name path="..."/> schema elements. This flaw allows a malicious actor to craft a malicious XML document used as input for libxml, resulting in the program's crash using libxml or other possible undefined behaviors.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10libxml22.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8libxml22.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9libxml22.9.13-10.el9_6ALSA-2025:10699
AlmaLinux:10libxml2-devel2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8libxml2-devel2.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9libxml2-devel2.9.13-10.el9_6ALSA-2025:10699
AlmaLinux:10libxml2-static2.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:10python3-libxml22.12.5-7.el10_0ALSA-2025:10630
AlmaLinux:8python3-libxml22.9.7-21.el8_10.1ALSA-2025:10698
AlmaLinux:9python3-libxml22.9.13-10.el9_6ALSA-2025:10699
Alpine:v3.21libxml22.13.9-r0ALPINE-CVE-2025-49794
Alpine:v3.22libxml22.13.9-r0ALPINE-CVE-2025-49794
Alpine:v3.23libxml22.13.9-r0ALPINE-CVE-2025-49794
Alpine:v3.24libxml22.13.9-r0ALPINE-CVE-2025-49794
Debian:12libxml22.9.14+dfsg-1.3~deb12u3DEBIAN-CVE-2025-49794
Debian:13libxml22.12.7+dfsg+really2.9.14-2DEBIAN-CVE-2025-49794
Debian:14libxml22.12.7+dfsg+really2.9.14-2DEBIAN-CVE-2025-49794
Rocky Linux:10libxml20:2.12.5-7.el10_0RLSA-2025:10630
Rocky Linux:8libxml20:2.9.7-21.el8_10.1RLSA-2025:10698
Rocky Linux:9libxml20:2.9.13-10.el9_6RLSA-2025:10699
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8USN-7694-1
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.8UBUNTU-CVE-2025-49794
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4USN-7694-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.4UBUNTU-CVE-2025-49794

Affected products (as reported)

VendorProductVersions
libxml2 0 – before 2.15.0
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat JBoss Core Services 2.4.62.SP2 see references
Red Hat Red Hat OpenShift Container Platform 4.12 see references
Red Hat Red Hat OpenShift Container Platform 4.13 see references
Red Hat Red Hat OpenShift Container Platform 4.14 see references
Red Hat Red Hat OpenShift Container Platform 4.15 see references
Red Hat Red Hat OpenShift Container Platform 4.16 see references
Red Hat Red Hat OpenShift Container Platform 4.17 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.19 see references
Red Hat Red Hat OpenShift Container Platform 4.20 see references
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 see references
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 see references

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

References