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.
Metrics
Affected Vendors & Products
References
History
Fri, 12 Sep 2025 09:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Gnome
Gnome libxml2 Xmlsoft Xmlsoft libxml2 |
|
Vendors & Products |
Gnome
Gnome libxml2 Xmlsoft Xmlsoft libxml2 |
Wed, 10 Sep 2025 19:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Wed, 10 Sep 2025 18:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A flaw was found in libxstl/libxml2. The 'exsltDynMapFunction' function in libexslt/dynamic.c does not contain a recursion depth check, which may cause an infinite loop via a specially crafted XSLT document while handling 'dyn:map()', leading to stack exhaustion and a local denial of service. | 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. |
Title | libxslt: libxml2: Inifinite recursion at exsltDynMapFunction function in libexslt/dynamic.c | Stack overflow in libxml2 |
Weaknesses | CWE-674 |
Wed, 03 Sep 2025 00:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A flaw was found in libxstl/libxml2. The 'exsltDynMapFunction' function in libexslt/dynamic.c does not contain a recursion depth check, which may cause an infinite loop via a specially crafted XSLT document while handling 'dyn:map()', leading to stack exhaustion and a local denial of service. | |
Title | libxslt: libxml2: Inifinite recursion at exsltDynMapFunction function in libexslt/dynamic.c | |
Weaknesses | CWE-606 | |
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|

Status: PUBLISHED
Assigner: canonical
Published: 2025-09-10T18:43:12.204Z
Updated: 2025-09-10T18:46:46.622Z
Reserved: 2025-08-29T23:28:33.339Z
Link: CVE-2025-9714

Updated: 2025-09-10T18:46:43.927Z

Status : Awaiting Analysis
Published: 2025-09-10T19:15:42.707
Modified: 2025-09-11T17:14:10.147
Link: CVE-2025-9714
