CVEfocus › CVE database › CVE-2025-7425

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

CVSS 7.8 HighEPSS 0.3% (higher than 15% of CVEs)Published 2025-07-10Updated 2026-11-06Assigner: redhat

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
6Fix pending
2Under investigation
4Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libxsltFix pendingUBUNTU-CVE-2025-7425
Ubuntu 26.04libxml2Not affected
vulnerable_code_not_present
Ubuntu 26.04libxsltUnder investigationUBUNTU-CVE-2025-7425
Ubuntu 25.10libxml2Not affected
vulnerable_code_not_present
Ubuntu 25.10libxsltWill not fix
as of 2026-10-22, the proposed fix for libxslt has not been merged yet, but there is a work-around in libxml2 available to address this issue Per the upstream…
UBUNTU-CVE-2025-7425
Ubuntu 24.04libxml2Fixed2.9.14+dfsg-1.3ubuntu3.6UBUNTU-CVE-2025-7425
Ubuntu 24.04libxsltUnder investigationUBUNTU-CVE-2025-7425
Ubuntu 22.04libxml2Fixed2.9.13+dfsg-1ubuntu0.10UBUNTU-CVE-2025-7425
Ubuntu 22.04libxsltNot affected
vulnerable_code_not_present
Ubuntu 20.04libxml2Fix pending2.9.10+dfsg-5ubuntu0.20.04.10+esm3 (Ubuntu Pro)UBUNTU-CVE-2025-7425
Ubuntu 18.04libxml2Fix pending2.9.4+dfsg1-6.1ubuntu1.9+esm6 (Ubuntu Pro)UBUNTU-CVE-2025-7425
Ubuntu 16.04libxml2Fix pending2.9.3+dfsg1-1ubuntu0.7+esm11 (Ubuntu Pro)UBUNTU-CVE-2025-7425
Ubuntu 14.04libxml2Fix pending2.9.1+dfsg1-3ubuntu4.13+esm10 (Ubuntu Pro)UBUNTU-CVE-2025-7425
Debian 14libxsltFix pendingDEBIAN-CVE-2025-7425
Red Hat Enterprise Linux 10libxsltFixed0:1.1.39-8.el10_0RHBA-2025:12345
Red Hat Enterprise Linux 10libxslt-develFixed0:1.1.39-8.el10_0RHBA-2025:12345
Red Hat Enterprise Linux 9libxml2Fixed0:2.9.13-11.el9_6RHSA-2025:12447
Red Hat Enterprise Linux 9libxml2-develFixed0:2.9.13-11.el9_6RHSA-2025:12447
Red Hat Enterprise Linux 9python3-libxml2Fixed0:2.9.13-11.el9_6RHSA-2025:12447
Red Hat Enterprise Linux 8libxml2Fixed0:2.9.7-21.el8_10.2RHSA-2025:12450
Red Hat Enterprise Linux 8libxml2-develFixed0:2.9.7-21.el8_10.2RHSA-2025:12450
Red Hat Enterprise Linux 8python3-libxml2Fixed0:2.9.7-21.el8_10.2RHSA-2025:12450
Red Hat Enterprise Linux 6libxsltWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxslt-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libxslt-pythonWill not fix
Out of support scope
AlmaLinux 9libxml2Fixed2.9.13-11.el9_6ALSA-2025:12447
AlmaLinux 9libxml2-develFixed2.9.13-11.el9_6ALSA-2025:12447
AlmaLinux 9python3-libxml2Fixed2.9.13-11.el9_6ALSA-2025:12447
AlmaLinux 8libxml2Fixed2.9.7-21.el8_10.2ALSA-2025:12450
AlmaLinux 8libxml2-develFixed2.9.7-21.el8_10.2ALSA-2025:12450
AlmaLinux 8python3-libxml2Fixed2.9.7-21.el8_10.2ALSA-2025:12450
Rocky Linux 9libxml2Fixed0:2.9.13-11.el9_6RLSA-2025:12447

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.