libxslt Heap Corruption via atype Flag Manipulation
CVE-2025-7425 Published on July 10, 2025
Libxslt: 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.
Vulnerability Analysis
CVE-2025-7425 can be exploited with local system access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2025-7425. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity and availability.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2025-7425 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2025-7425
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-7425 are published in these products:
Affected Versions
GNOME libxml2:- Before 2.15.2 is affected.
- Version 0:2.12.5-8.el10_0 and below * is unaffected.
- Version 0:1.1.39-8.el10_0 and below * is unaffected.
- Version 0:2.9.1-6.el7_9.12 and below * is unaffected.
- Version 0:2.9.7-21.el8_10.2 and below * is unaffected.
- Version 0:2.9.7-21.el8_10.2 and below * is unaffected.
- Version 0:2.9.7-9.el8_2.4 and below * is unaffected.
- Version 0:2.9.7-9.el8_4.7 and below * is unaffected.
- Version 0:2.9.7-9.el8_4.7 and below * is unaffected.
- Version 0:2.9.7-13.el8_6.11 and below * is unaffected.
- Version 0:2.9.7-13.el8_6.11 and below * is unaffected.
- Version 0:2.9.7-13.el8_6.11 and below * is unaffected.
- Version 0:2.9.7-16.el8_8.10 and below * is unaffected.
- Version 0:2.9.7-16.el8_8.10 and below * is unaffected.
- Version 0:2.9.13-11.el9_6 and below * is unaffected.
- Version 0:2.9.13-11.el9_6 and below * is unaffected.
- Version 0:2.9.13-1.el9_0.6 and below * is unaffected.
- Version 0:2.9.13-3.el9_2.8 and below * is unaffected.
- Version 0:2.9.13-11.el9_4 and below * is unaffected.
- Version 412.86.202509030110-0 and below * is unaffected.
- Version 413.92.202509030117-0 and below * is unaffected.
- Version 414.92.202508270040-0 and below * is unaffected.
- Version 415.92.202508192014-0 and below * is unaffected.
- Version 416.94.202508261955-0 and below * is unaffected.
- Version 417.94.202508141510-0 and below * is unaffected.
- Version 418.94.202508261658-0 and below * is unaffected.
- Version 4.19.9.6.202508271124-0 and below * is unaffected.
- Version 1.11-19 and below * is unaffected.
- Version 1.11-8 and below * is unaffected.
- Version 1.12-4 and below * is unaffected.
- Version 1.36.0-11 and below * is unaffected.
- Version 1.36.0-11 and below * is unaffected.
- Version 1.36.0-11 and below * is unaffected.
- Version 1.36.0-10 and below * is unaffected.
- Version 1.36.0-10 and below * is unaffected.
- Version 1.36.0-4 and below * is unaffected.
- Version 1.36.0-9 and below * is unaffected.
- Version 1.36.0-18 and below * is unaffected.
- Version 1.36.0-11 and below * is unaffected.
- Version 1.36.0-7 and below * is unaffected.
- Version v1.16.5-1760515757 and below * is unaffected.
- Version v1.3 and below * is unaffected.
- Version 1.8.0 and below * is unaffected.
- Version 1.8.0 and below * is unaffected.
- Version 1.8.0 and below * is unaffected.
- Version 2.0.1-1754478727 and below * is unaffected.
- Version 2.15.3-0.1.hum1 and below * is unaffected.
- Version 1.5.5-1754504343 and below * is unaffected.
- Version rhosdt-3.5-1754559657 and below * is unaffected.
- Version rhosdt-3.5-1754559845 and below * is unaffected.
- Version rhosdt-3.5-1754559691 and below * is unaffected.
- Version rhosdt-3.5-1754559660 and below * is unaffected.
- Version rhosdt-3.5-1754559663 and below * is unaffected.
- Version rhosdt-3.5-1754559657 and below * is unaffected.
- Version rhosdt-3.5-1754569861 and below * is unaffected.
- Version rhosdt-3.5-1754559846 and below * is unaffected.
- Version rhosdt-3.5-1754559651 and below * is unaffected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V2.17.1 is affected.
- Before V5.0 is affected.
- Version V3.1.5 and below * is affected.
- Version V3.1.5 and below * is affected.
- Version V3.1.5 and below * is affected.
- Version V3.1.5 and below * is affected.
- Before * is affected.
- Version V3.1.5 and below * is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.