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

Published Jul 10, 2025
·
Updated

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.

Other sources

Accessibility. A logic issue was addressed with improved checks.

— Apple

Accessibility. The issue was addressed by adding additional logic.

— Apple

Admin Framework. A path handling issue was addressed with improved validation.

— Apple

afclip. The issue was addressed with improved memory handling.

— Apple

AMD. A race condition was addressed with improved state handling.

— Apple

Credit

Sergei Glazunov(Google Project Zero), Wong Wee Xiang, CVE-2025-43226, Himanshu Bharti@@Xpl0itme, Andreas Jaegersberger & Ro Achterberg(Nosebeard Labs), Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Google's Threat Analysis Group, Gary Kwong(Trend Micro Zero Day Initiative), Brian Carpenter, Christian Kohlschütter, Chi Yuan Chang(ZUSO ART), taikosoup, Mickey Jin@@patch1t, Ryan Dowd@@_rdowd, ABC Research s.r.o., Noah Gregory (wts.dev), MRHAX, Aditya Rana, 风沐云烟@@binary_fmyy, Minghao Lin@@Y1nKoc, Gergely Kalman@@gergely_kalman, an anonymous researcher, Seo Hyun-gyu@@wh1te4ever(Xiaomi), Dora Orak(Xiaomi), Minghao Lin@@Y1nKoc(Xiaomi), XiLong Zhang@@Resery4(Xiaomi), noir@@ROIS, fmyy (@风沐云烟), Anonymous(Trend Micro Zero Day Initiative), Dawuge(Shuffle Team), 2ourc3 | Salim Largo, Willey Lin, Arsenii Kostromin (0x3c3e)

Affected Software

33 affected componentsFixes available
libxslt libxslt
debian/libxslt<=1.1.45-0.1
1.1.35-1+deb12u41.1.35-1+deb12u31.1.35-1.2+deb13u31.1.35-1.2+deb13u2
debian/libxslt*
IBM SevOne Network Performance Management<=7.0.0 - 8.2.2
Apple Safari<18.6
18.6
Apple iOS<18.6
18.6
Apple iPadOS<18.6
18.6
Apple macOS Sequoia<15.6
15.6
Apple visionOS<2.6
2.6
Apple tvOS<18.6
18.6
Apple WatchOS<11.6
11.6
All of the following
azurelinux/libxslt=1.1.43-1
Microsoft Azure Linux=3.0
All of the following
azurelinux/libxml2<2.11.5-8
2.11.5-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/libxslt=1.1.34-9
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/libxslt=1.1.34-8
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/libxslt=1.1.43-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/libxslt=1.1.34-10
Microsoft CBL-Mariner=2.0
ubuntu/libxml2<2.9.1+dfsg1-3ubuntu4.13+esm10
2.9.1+dfsg1-3ubuntu4.13+esm10
ubuntu/libxml2<2.9.3+dfsg1-1ubuntu0.7+esm11
2.9.3+dfsg1-1ubuntu0.7+esm11
ubuntu/libxml2<2.9.4+dfsg1-6.1ubuntu1.9+esm6
2.9.4+dfsg1-6.1ubuntu1.9+esm6
ubuntu/libxml2<2.9.10+dfsg-5ubuntu0.20.04.10+esm3
2.9.10+dfsg-5ubuntu0.20.04.10+esm3
ubuntu/libxml2<2.9.13+dfsg-1ubuntu0.10
2.9.13+dfsg-1ubuntu0.10
ubuntu/libxml2<2.9.14+dfsg-1.3ubuntu3.6
2.9.14+dfsg-1.3ubuntu3.6
ubuntu/libxslt*
ubuntu/libxslt*
ubuntu/libxslt*
ubuntu/libxslt*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libxslt to a version that resolves this vulnerability.

    Fixed in 1.1.35-1+deb12u4Fixed in 1.1.35-1+deb12u3Fixed in 1.1.35-1.2+deb13u3Fixed in 1.1.35-1.2+deb13u2
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.6
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.6
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.6
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.6
  6. Upgrade

    Upgrade azurelinux/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.11.5-8
  7. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.1+dfsg1-3ubuntu4.13+esm10
  8. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.3+dfsg1-1ubuntu0.7+esm11
  9. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.4+dfsg1-6.1ubuntu1.9+esm6
  10. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.10+dfsg-5ubuntu0.20.04.10+esm3
  11. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.13+dfsg-1ubuntu0.10
  12. Upgrade

    Upgrade ubuntu/libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14+dfsg-1.3ubuntu3.6
  13. Remove

    Remove libxslt from your environment.

    If you cannot patch, remove the vulnerable libxslt code as described: 'This issue was addressed by removing the vulnerable code.'

  14. Compensating control

    Mitigate exploitation by blocking or restricting crafted XSLT that uses the key() function and result tree fragments (described as the exploitable vector in the material) until the libxslt/libxml2 fix is applied.

Event History

Jul 10, 2025
Data Sourced
via Red Hat·09:47 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·01:53 PM
Data Sourced
via MITRE·01:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeakness
Exploit Published
via CISA·03:21 PM
Jul 29, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Aug 11, 2025
Event
via FIRST·12:00 AM
Sep 4, 2025
Data Sourced
via Microsoft·02:04 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:04 AM
Affected Software
Updated
via Microsoft·02:04 AM
Weakness
Updated
via Microsoft·02:04 AM
Affected Software
Updated
via Microsoft·09:04 AM
Affected Software
Updated
via Microsoft·09:04 AM
WeaknessAffected Software
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 7, 2026
Updated
via Microsoft·08:48 AM
Weakness
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-7425?

CVE-2025-7425 is classified as a medium severity vulnerability due to its potential for causing memory management issues.

2

How do I fix CVE-2025-7425?

To fix CVE-2025-7425, you should upgrade to the latest version of libxslt where the memory management flaw has been addressed.

3

What systems are affected by CVE-2025-7425?

CVE-2025-7425 affects systems running vulnerable versions of the libxslt library.

4

What are the risks of not addressing CVE-2025-7425?

Failure to address CVE-2025-7425 may lead to application instability and potential data corruption due to improper handling of ID attributes.

5

Who is responsible for the CVE-2025-7425 vulnerability?

The CVE-2025-7425 vulnerability was identified in the libxslt library, which is maintained by the open-source community.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203