Medium severity · published Sep 10, 2025
CVE-2025-9714
Stack overflow in libxml2
5.5
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 5% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
libxml2 · libxml2
before 2.10.0; before 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3; before 2.9.14+dfsg-1.3ubuntu3.5; before 2.9.13+dfsg-1ubuntu0.9; before 2.9.10+dfsg-5ubuntu0.20.04.10+esm2; before 2.9.4+dfsg1-6.1ubuntu1.9+esm5; +2 more · source: vendor, NVD
RR
RUGGEDCOM ROX MX5000 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX MX5000RE · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1400 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1500 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1501 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1510 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1511 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1512 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1524 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX1536 · Siemens
before V2.17.1 · source: CISA
RR
RUGGEDCOM ROX RX5000 · Siemens
before V2.17.1 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-9714
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-9714
Patch
https://gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/09/msg00035.html
cert-portal.siemens.com
https://cert-portal.siemens.com/productcert/html/ssa-577017.html
More from libxml2
9.1
CVE-2024-40896
In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers try to override…
