Uncontrolled Recursion Vulnerability in libxml2 Affecting GNOME Products
CVE-2025-9714

6.2MEDIUM

Key Information:

Vendor

Libxml2

Status
Vendor
CVE Published:
10 September 2025

What is CVE-2025-9714?

The libxml2 library contains a vulnerability that allows local attackers to exploit uncontrolled recursion during XPath evaluation. This issue can lead to a stack overflow when crafted expressions trigger recursive calls of XPath processing functions. Prior to the recent fix, functions such as xmlXPathRunEval, xmlXPathCtxtCompile, and xmlXPathEvalExpr incorrectly reset recursion depth, enabling an attacker to initiate excessively deep recursive calls, thereby interrupting application functionality. The updated version now ensures that recursion depth is maintained, effectively mitigating the risk of stack overflow.

Affected Version(s)

libxml2 Linux 0 < 2.10.0

libxml2 Linux 0 < 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3

libxml2 Linux 0 < 2.9.14+dfsg-1.3ubuntu3.5

References

CVSS V3.1

Score:
6.2
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Nikita Sveshnikov (Positive Technologies)
.