CVE-2025-9714

Stack overflow in libxml2

Published Sep 10, 2025 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

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
History
Type Values Removed Values Added
CPEs cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Gnome
Gnome libxml2
Xmlsoft
Xmlsoft libxml2
Vendors & Products Gnome
Gnome libxml2
Xmlsoft
Xmlsoft libxml2
Type Values Removed Values Added
Metrics ssvc

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

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
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

Weaknesses

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
May 12, 2026, 12:02 PM
Reserved
Aug 29, 2025, 11:28 PM
Status
Modified
Published
Sep 10, 2025, 7:15 PM
Modified
Oct 19, 2026, 5:10 PM
Severity
Moderate
Public date
Sep 2, 2025, 12:00 AM