libxslt Heap Corruption via atype Flag Manipulation
CVE-2025-7425 Published on July 10, 2025
Libxslt: 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 sha256:1abdfac084e7c86e7a93a19e5cf6b54db79b903bfb7474a42200f753b29eda4b and below * is unaffected.
- Version sha256:364d11af112a5b1d3f28c9ea8b7aac678e111b9c7fca0516d61036904f318605 and below * is unaffected.
- Version sha256:4953a7ea865ff38a4fe19d5536d8062870c262733c640a2c7e4bd9e0bfb3d498 and below * is unaffected.
- Version sha256:06ad8599c4b0170264e40a45b0126504c87c37f0832265c7ff6541d2385b2049 and below * is unaffected.
- Version sha256:0903a7a5c857d96c84fd022e5785514eff201047e2fdd5d6699d79f17440ef02 and below * is unaffected.
- Version sha256:ad07f55ee75fb20310c88f154a04665bd8465d138d66c665c300f61447858344 and below * is unaffected.
- Version sha256:c26d589f12647890b67aaa986f54d3f7c6f7f2563fb5a73f38d559e6138739d7 and below * is unaffected.
- Version sha256:2a359b16651cf20b9e37faabc6f57753744c59103979670260e263df2857da47 and below * is unaffected.
- Version sha256:02d88da5fdc965b3759b7c74667dc93a374dc379719456a2a9c0ef15ac36d656 and below * is unaffected.
- Version sha256:260572b783d27d50a2dcdcac09a1fe15358c0fa5f85de93ce5fd8321cd81a0fa and below * is unaffected.
- Version sha256:783a10c95edcb5c5cb8394b796f27dbfbb5ac6e1ee3baaa27d6c43f411ad6045 and below * is unaffected.
- Version sha256:39b2d56b8f0eb3b539697fc387ae84230182c7e8cf5c184b8ee6c02e29386120 and below * is unaffected.
- Version sha256:0932824cfd76c0e3d80f6e5b81312405b4a6a670d715144fc4d08bdb3a3cf962 and below * is unaffected.
- Version sha256:264613b2add0f32e5f537ee7cf9ba8019e5e9a347fdf20bc3de8d1678157ba66 and below * is unaffected.
- Version sha256:2509c7cc0bdf6d001442d2e83e21925b09a59c4b05eef81e98af93327f6f6c6d and below * is unaffected.
- Version sha256:c6f9ee5f306766c0502419fe691e9e14aad8b0d1a4ced7ff9b1738c272fba80b and below * is unaffected.
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.