Vulnerability · Published Jul 10, 2025 · Assigned by redhat

CVE-2025-7425Libxslt: libxml2: heap use-after-free in libxslt caused by atype corruption in xmlattrptr

High 7.8

In plain English

A high-severity use-after-free in libxml2 from GNOME. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

A flaw was found in libxslt where the attribute type, atype, flags are modified in a way that corrupts internal memory management. When XSLT functions, such as the key() process, result in tree fragments, this corruption prevents the proper cleanup of ID attributes. As a result, the system may access freed memory, causing crashes or enabling attackers to trigger heap corruption.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libxml22.9.7-21.el8_10.2ALSA-2025:12450
AlmaLinux:9libxml22.9.13-11.el9_6ALSA-2025:12447
AlmaLinux:8libxml2-devel2.9.7-21.el8_10.2ALSA-2025:12450
AlmaLinux:9libxml2-devel2.9.13-11.el9_6ALSA-2025:12447
AlmaLinux:8python3-libxml22.9.7-21.el8_10.2ALSA-2025:12450
AlmaLinux:9python3-libxml22.9.13-11.el9_6ALSA-2025:12447
Debian:12libxml22.9.14+dfsg-1.3~deb12u4DSA-5990-1
Debian:13libxml22.12.7+dfsg+really2.9.14-2.1+deb13u1DSA-5990-1
Debian:14libxsltno fix listedDEBIAN-CVE-2025-7425
Rocky Linux:9libxml20:2.9.13-11.el9_6RLSA-2025:12447
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.10UBUNTU-CVE-2025-7425
Ubuntu:22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.10USN-7852-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.6USN-7852-1
Ubuntu:24.04:LTSlibxml22.9.14+dfsg-1.3ubuntu3.6UBUNTU-CVE-2025-7425
Ubuntu:24.04:LTSlibxsltno fix listedUBUNTU-CVE-2025-7425
Ubuntu:25.10libxsltno fix listedUBUNTU-CVE-2025-7425
Ubuntu:26.04:LTSlibxsltno fix listedUBUNTU-CVE-2025-7425
Ubuntu:26.10libxsltno fix listedUBUNTU-CVE-2025-7425

Affected products (as reported)

VendorProductVersions
GNOME libxml2 0 – before 2.15.2
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 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 Web Terminal 1.11 on RHEL 9 see references
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 see references
Red Hat Red Hat Web Terminal 1.12 on RHEL 9 see references
Red Hat RHOSS-1.36-RHEL-8 see references

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

References