CVE-2025-9714

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

Configuration 1 (hide)

cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*

History

19 Oct 2026, 17:10

Type Values Removed Values Added
Summary
  • (es) La recursión incontrolada en la evaluación de XPath en libxml2 hasta la versión 2.9.14 inclusive permite a un atacante local causar un desbordamiento de pila mediante expresiones manipuladas. Las funciones de procesamiento de XPath 'xmlXPathRunEval', 'xmlXPathCtxtCompile' y 'xmlXPathEvalExpr' estaban restableciendo la profundidad de recursión a cero antes de realizar llamadas potencialmente recursivas. Cuando dichas funciones eran llamadas recursivamente, esto podía permitir una recursión incontrolada y conducir a un desbordamiento de pila. Estas funciones ahora preservan la profundidad de recursión a través de las llamadas recursivas, permitiendo que la profundidad de recursión sea controlada.

Information

Published : 2025-09-10 19:15

Updated : 2026-10-19 17:10


NVD link : CVE-2025-9714

Mitre link : CVE-2025-9714

CVE.ORG link : CVE-2025-9714


JSON object : View

Products Affected

xmlsoft

  • libxml2
CWE
CWE-674

Uncontrolled Recursion