Stack overflow in libxml2

Summary

CVECVE-2025-9714
StatePUBLISHED
Assignercanonical
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-09-10 19:15:42 UTC
Updated2026-05-12 13:17:30 UTC
DescriptionUncontrolled 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.000090000 probability, percentile 0.009450000 (date 2026-05-12)

Problem Types: CWE-674 | CWE-674 CWE-674 Uncontrolled Recursion


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
3.1[email protected]Secondary6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNACVSS6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Xmlsoft Libxml2 All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Libxml2 Libxml2 affected 2.10.0 semver Linux
CNA Libxml2 Libxml2 affected 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.14+dfsg-1.3ubuntu3.5 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.13+dfsg-1ubuntu0.9 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.4+dfsg1-6.1ubuntu1.9+esm5 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.3+dfsg1-1ubuntu0.7+esm10 dpkg Linux
CNA Libxml2 Libxml2 affected 2.9.1+dfsg1-3ubuntu4.13+esm9 dpkg Linux
ADP Siemens RUGGEDCOM ROX MX5000 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX MX5000RE affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1400 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1500 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1501 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1510 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1511 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1512 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1524 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX1536 affected V2.17.1 custom Not specified
ADP Siemens RUGGEDCOM ROX RX5000 affected V2.17.1 custom Not specified

References

ReferenceSourceLinkTags
gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21 [email protected] gitlab.gnome.org Patch
lists.debian.org/debian-lts-announce/2025/09/msg00035.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
cert-portal.siemens.com/productcert/html/ssa-577017.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Nikita Sveshnikov (Positive Technologies) (en)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report