CVE-2025-7425: Libxslt Heap Use-After-Free Vulnerability
HighExecutive Summary
CVE-2025-7425 is a heap use-after-free vulnerability in libxslt caused by atype corruption in xmlattrptr, potentially leading to memory corruption and application crashes. The vulnerability has a CVSS score of 7.8 (High) and its status is that patches are available for some systems, but mitigation may not be readily available for all.
Vulnerability Details
- Affected Product: libxslt on Red Hat Enterprise Linux (RHEL 7 ELS, RHEL 8, RHEL 9) and SUSE Linux Enterprise (SLES 12 SP5).
- Identifier: CVE-2025-7425
- CVSS Score: 7.8 (High)
- Exploitation Status: No active exploitation has been confirmed, but similar vulnerabilities have been exploited in the past.
Risk & Impact
- Triage: Immediate patching is recommended due to the potential for memory corruption, application crashes, and potential arbitrary code execution.
- Attack Vector: The vulnerability can be triggered by crafting malicious XSLT stylesheets or XML documents. The attack vector is local with high attack complexity.
- Ease of Exploit: Exploitation requires specific conditions or expertise due to the high attack complexity.
Action Plan
- Immediate Action:
Apply vendor patches immediately. For RHEL 9, upgrade to libxslt-1.1.34-13.el9_6. For RHEL 8, ensure versions are 2.9.7-21.el8_10.2 or later. For RHEL 7 ELS, update to 2.9.1-6.el7_9.12.
- Workaround: Implement a Web Application Firewall (WAF) or Intrusion Detection System (IDS) to identify and block attempts to exploit this vulnerability as a temporary mitigation.
- Detection: Monitor for modifications to attribute type flags and unusual memory access patterns.
Relevant professional terms
- Heap Use-After-Free
- A type of vulnerability that occurs when a program attempts to access memory on the heap that has already been freed, potentially leading to crashes or arbitrary code execution.
- Atype Corruption
- The modification of attribute type flags in a way that corrupts internal memory management, leading to improper cleanup of ID attributes.
Source: Red Hat Customer Portal
