CVE-2025-7425Libxslt: libxml2: heap use-after-free in libxslt caused by atype corruption in xmlattrptr
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libxslt | Fix pending | UBUNTU-CVE-2025-7425 | |
| Ubuntu 26.04 | libxml2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | libxslt | Under investigation | UBUNTU-CVE-2025-7425 | |
| Ubuntu 25.10 | libxml2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libxslt | Will 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.04 | libxml2 | Fixed | 2.9.14+dfsg-1.3ubuntu3.6 | UBUNTU-CVE-2025-7425 |
| Ubuntu 24.04 | libxslt | Under investigation | UBUNTU-CVE-2025-7425 | |
| Ubuntu 22.04 | libxml2 | Fixed | 2.9.13+dfsg-1ubuntu0.10 | UBUNTU-CVE-2025-7425 |
| Ubuntu 22.04 | libxslt | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libxml2 | Fix pending | 2.9.10+dfsg-5ubuntu0.20.04.10+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-7425 |
| Ubuntu 18.04 | libxml2 | Fix pending | 2.9.4+dfsg1-6.1ubuntu1.9+esm6 (Ubuntu Pro) | UBUNTU-CVE-2025-7425 |
| Ubuntu 16.04 | libxml2 | Fix pending | 2.9.3+dfsg1-1ubuntu0.7+esm11 (Ubuntu Pro) | UBUNTU-CVE-2025-7425 |
| Ubuntu 14.04 | libxml2 | Fix pending | 2.9.1+dfsg1-3ubuntu4.13+esm10 (Ubuntu Pro) | UBUNTU-CVE-2025-7425 |
| Debian 14 | libxslt | Fix pending | DEBIAN-CVE-2025-7425 | |
| Red Hat Enterprise Linux 10 | libxslt | Fixed | 0:1.1.39-8.el10_0 | RHBA-2025:12345 |
| Red Hat Enterprise Linux 10 | libxslt-devel | Fixed | 0:1.1.39-8.el10_0 | RHBA-2025:12345 |
| Red Hat Enterprise Linux 9 | libxml2 | Fixed | 0:2.9.13-11.el9_6 | RHSA-2025:12447 |
| Red Hat Enterprise Linux 9 | libxml2-devel | Fixed | 0:2.9.13-11.el9_6 | RHSA-2025:12447 |
| Red Hat Enterprise Linux 9 | python3-libxml2 | Fixed | 0:2.9.13-11.el9_6 | RHSA-2025:12447 |
| Red Hat Enterprise Linux 8 | libxml2 | Fixed | 0:2.9.7-21.el8_10.2 | RHSA-2025:12450 |
| Red Hat Enterprise Linux 8 | libxml2-devel | Fixed | 0:2.9.7-21.el8_10.2 | RHSA-2025:12450 |
| Red Hat Enterprise Linux 8 | python3-libxml2 | Fixed | 0:2.9.7-21.el8_10.2 | RHSA-2025:12450 |
| Red Hat Enterprise Linux 6 | libxslt | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxslt-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxslt-python | Will not fix Out of support scope | ||
| AlmaLinux 9 | libxml2 | Fixed | 2.9.13-11.el9_6 | ALSA-2025:12447 |
| AlmaLinux 9 | libxml2-devel | Fixed | 2.9.13-11.el9_6 | ALSA-2025:12447 |
| AlmaLinux 9 | python3-libxml2 | Fixed | 2.9.13-11.el9_6 | ALSA-2025:12447 |
| AlmaLinux 8 | libxml2 | Fixed | 2.9.7-21.el8_10.2 | ALSA-2025:12450 |
| AlmaLinux 8 | libxml2-devel | Fixed | 2.9.7-21.el8_10.2 | ALSA-2025:12450 |
| AlmaLinux 8 | python3-libxml2 | Fixed | 2.9.7-21.el8_10.2 | ALSA-2025:12450 |
| Rocky Linux 9 | libxml2 | Fixed | 0:2.9.13-11.el9_6 | RLSA-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.
- GNOME libxml2: affected: before 2.15.2; fixed in
2.15.2 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
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:
- https://access.redhat.com/errata/RHBA-2025:12345 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:12447 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:12450 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:13267 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:13308 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:13309 (vendor-advisory)
References
- https://access.redhat.com/errata/RHBA-2025:12345
- https://access.redhat.com/errata/RHSA-2025:12447
- https://access.redhat.com/errata/RHSA-2025:12450
- https://access.redhat.com/errata/RHSA-2025:13267
- https://access.redhat.com/errata/RHSA-2025:13308
- https://access.redhat.com/errata/RHSA-2025:13309
- https://access.redhat.com/errata/RHSA-2025:13310
- https://access.redhat.com/errata/RHSA-2025:13311
- https://access.redhat.com/errata/RHSA-2025:13312
- https://access.redhat.com/errata/RHSA-2025:13313
- https://access.redhat.com/errata/RHSA-2025:13314
- https://access.redhat.com/errata/RHSA-2025:13335
- https://access.redhat.com/errata/RHSA-2025:13464
- https://access.redhat.com/errata/RHSA-2025:13622
- https://access.redhat.com/errata/RHSA-2025:14059
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.