{"id":"CVE-2025-9714","aliases":["CVE-2025-9714"],"related":[],"kind":"vulnerability","state":"published","title":"Stack overflow in libxml2","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-10T18:43:12.204Z","modified":"2026-10-19T17:10:00.173Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.10.0","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.12.7+dfsg+really2.9.14-0.4ubuntu0.3","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.14+dfsg-1.3ubuntu3.5","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.13+dfsg-1ubuntu0.9","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.10+dfsg-5ubuntu0.20.04.10+esm2","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.4+dfsg1-6.1ubuntu1.9+esm5","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.3+dfsg1-1ubuntu0.7+esm10","status":"affected"},{"type":"dpkg","introduced":"0","fixed":"2.9.1+dfsg1-3ubuntu4.13+esm9","status":"affected"}],"vendor":"libxml2","product":"libxml2","package":"libxml2","repo":"https://gitlab.gnome.org/GNOME/libxml2","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.10.0"}],"vendor":"xmlsoft","product":"libxml2","cpe":"cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00035.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-577017.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Nikita Sveshnikov (Positive Technologies)"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-10T18:46:42.383Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-9714","url":"https://www.cve.org/CVERecord?id=CVE-2025-9714","licence":"CVE Terms of Use","modified":"2026-05-12T12:02:43.668Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-9714","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9714","licence":"Public domain","modified":"2026-10-19T17:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:04.506Z","epss":{"score":0.00176,"percentile":0.07446,"date":"2026-12-01T12:00:22.000Z"}}