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.

Project Subscriptions

Vendors Products
Libxml2 Subscribe
Xmlsoft Subscribe
Libxml2 Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-4319-1 libxml2 security update
EUVD EUVD EUVD-2025-27609 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.
Ubuntu USN Ubuntu USN USN-7743-1 libxml2 vulnerability
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 03 Nov 2025 19:30:00 +0000

Type Values Removed Values Added
References

Wed, 17 Sep 2025 21:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*

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

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

None

cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2025-11-03T18:14:19.914Z

Reserved: 2025-08-29T23:28:33.339Z

Link: CVE-2025-9714

cve-icon Vulnrichment

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

cve-icon NVD

Status : Modified

Published: 2025-09-10T19:15:42.707

Modified: 2025-11-03T19:16:17.563

Link: CVE-2025-9714

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-09-02T00:00:00Z

Links: CVE-2025-9714 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2025-09-12T09:11:27Z

Weaknesses