Uncontrolled Recursion Vulnerability in libxml2 Affecting GNOME Products
CVE-2025-9714
6.2MEDIUM
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