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.
- Score
- CVSS 3.1 6.2 Medium
- Status
- Modified - security@ubuntu.com
- Published
- 2025-09-10
- Last modified
- 2026-10-19
- Weaknesses
- CWE-674
Affected products
- Libxml2 (Libxml2)
- Ruggedcom Rox Mx5000 (Siemens)
- Ruggedcom Rox Mx5000re (Siemens)
- Ruggedcom Rox Rx1400 (Siemens)
- Ruggedcom Rox Rx1500 (Siemens)
- Ruggedcom Rox Rx1501 (Siemens)
- Ruggedcom Rox Rx1510 (Siemens)
- Ruggedcom Rox Rx1511 (Siemens)
- Ruggedcom Rox Rx1512 (Siemens)
- Ruggedcom Rox Rx1524 (Siemens)
- Ruggedcom Rox Rx1536 (Siemens)
- Ruggedcom Rox Rx5000 (Siemens)
- Libxml2 (Xmlsoft)
References
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21
- https://lists.debian.org/debian-lts-announce/2025/09/msg00035.html
- https://cert-portal.siemens.com/productcert/html/ssa-577017.html