CVE-2025-9714: libxml2 Uncontrolled Recursion
Vulnerability summary
CVE-2025-9714 is a medium (CVSS 6.2) Uncontrolled Recursion vulnerability in libxml2. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 4.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 10-09-2025PublishedVulnerability first disclosed.
- 12-05-2026Last modifiedVulnerability information updated.
Description
Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14 allows a local attacker to cause a stack overflow via crafted expressions. XPath processing functions `xmlXPathRunEval`, `xmlXPathCtxtCompile`, and `xmlXPathEvalExpr` were resetting recursion depth to zero before making potentially recursive calls. When such functions were called recursively this could allow for uncontrolled recursion and lead to a stack overflow. These functions now preserve recursion depth across recursive calls, allowing recursion depth to be controlled.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
0.00 pp
From 0.15% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat8 products
- libxml2< 0:2.9.7-21.el8_10.4 | < 0:2.9.7-9.el8_4.9 | < 0:2.9.7-16.el8_8.13 | < 0:2.9.7-13.el8_6.13 | < 0:2.9.1-6.el7_9.14 | < 0:2.9.13-3.el9_2.10 | < 0:2.9.13-13.el9_4 | < 0:2.9.13-1.el9_0.8 | < 0:2.9.13-14.el9_7 | < 0:2.9.13-12.el9_6.1
- libxml2-debuginfo< 0:2.9.7-21.el8_10.4 | < 0:2.9.7-9.el8_4.9 | < 0:2.9.7-16.el8_8.13 | < 0:2.9.7-13.el8_6.13 | < 0:2.9.1-6.el7_9.14 | < 0:2.9.13-3.el9_2.10 | < 0:2.9.13-13.el9_4 | < 0:2.9.13-1.el9_0.8 | < 0:2.9.13-14.el9_7 | < 0:2.9.13-12.el9_6.1
- libxml2-debugsource< 0:2.9.7-21.el8_10.4 | < 0:2.9.7-9.el8_4.9 | < 0:2.9.7-16.el8_8.13 | < 0:2.9.7-13.el8_6.13 | < 0:2.9.13-3.el9_2.10 | < 0:2.9.13-13.el9_4 | < 0:2.9.13-1.el9_0.8 | < 0:2.9.13-14.el9_7 | < 0:2.9.13-12.el9_6.1
- libxml2-devel< 0:2.9.7-21.el8_10.4 | < 0:2.9.7-9.el8_4.9 | < 0:2.9.7-16.el8_8.13 | < 0:2.9.7-13.el8_6.13 | < 0:2.9.1-6.el7_9.14 | < 0:2.9.13-3.el9_2.10 | < 0:2.9.13-13.el9_4 | < 0:2.9.13-1.el9_0.8 | < 0:2.9.13-14.el9_7 | < 0:2.9.13-12.el9_6.1
- libxml2-python< 0:2.9.1-6.el7_9.14
Debian1 product
- libxml2< 2.9.14+dfsg-1.3~deb12u5 | < 2.12.7+dfsg+really2.9.14-2.1+deb13u2 | < 2.14.5+dfsg-0.1 | < 2.9.10+dfsg-6.7+deb11u9
Libxml21 product
- libxml2< 2.10.0 | < 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 | < 2.9.14+dfsg-1.3ubuntu3.5 | < 2.9.13+dfsg-1ubuntu0.9 | < 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | < 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | < 2.9.3+dfsg1-1ubuntu0.7+esm10 | < 2.9.1+dfsg1-3ubuntu4.13+esm9
Ubuntu1 product
- libxml2< 2.9.1+dfsg1-3ubuntu4.13+esm9 | < 2.9.3+dfsg1-1ubuntu0.7+esm10 | < 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | < 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | < 2.9.13+dfsg-1ubuntu0.9 | < 2.9.14+dfsg-1.3ubuntu3.5
Xmlsoft1 product
- libxml2< 2.10.0
5 vendors · 12 products