CVEFinder.io

CVE-2025-9714

🔶 medium
Summary

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

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 Score
6.2
Medium
EPSS Score
0.0
Exploit Probability
Published Date
2025-09-10
First Seen: 2026-01-05
Last Modified 2025-11-03
Source NVD 🔗
CVSS Vector 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE IDs (Weakness Types)

🔗 References 2

📦 Affected Products 1

🔗 Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2025-6170 ℹ️ low 2.5 0.0 A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files. When a user inpu... 2025-06-16
CVE-2025-6021 ⚠️ high 7.5 0.6 A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a ... 2025-06-12
CVE-2025-32415 ℹ️ low 2.9 0.0 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in xmlschemas.c has a heap-based buffer un... 2025-04-17
CVE-2025-32414 🔶 medium 5.6 0.2 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Python API (Python bindi... 2025-04-08
CVE-2024-56171 ⚠️ high 7.8 0.1 libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a use-after-free in xmlSchemaIDCFillNodeTables and xmlSchemaBubbleID... 2025-02-18
CVE-2025-24928 ⚠️ high 7.8 0.0 libxml2 before 2.12.10 and 2.13.x before 2.13.6 has a stack-based buffer overflow in xmlSnprintfElements in valid.c. To ... 2025-02-18
These CVEs affect the same products