{"id":"CVE-2025-9714","state":"PUBLISHED","title":"Stack overflow in libxml2","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.","publishedAt":"2025-09-10T18:43:12.204Z","updatedAt":"2026-05-12T12:02:43.668Z","severity":{"score":6.2,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"canonical"},"assigner":"canonical","products":["libxml2 libxml2"],"affected":[{"vendor":"libxml2","product":"libxml2","packageName":"libxml2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.10.0","versionType":"semver"},{"version":"0","status":"affected","lessThan":"2.12.7+dfsg+really2.9.14-0.4ubuntu0.3","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.14+dfsg-1.3ubuntu3.5","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.13+dfsg-1ubuntu0.9","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.10+dfsg-5ubuntu0.20.04.10+esm2","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.4+dfsg1-6.1ubuntu1.9+esm5","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.3+dfsg1-1ubuntu0.7+esm10","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.1+dfsg1-3ubuntu4.13+esm9","versionType":"dpkg"}],"collectionURL":"https://gitlab.gnome.org/GNOME/libxml2","modules":["xpath"],"platforms":["Linux"],"programFiles":["xpath.c"],"repo":"https://gitlab.gnome.org/GNOME/libxml2"}],"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"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/9xxx/CVE-2025-9714.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-9714","state":"PUBLISHED","datePublished":"2025-09-10T18:43:12.204Z","dateUpdated":"2026-05-12T12:02:43.668Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2025-08-29T23:28:33.339Z"},"containers":{"cna":{"title":"Stack overflow in libxml2","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"libxml2","product":"libxml2","packageName":"libxml2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.10.0","versionType":"semver"},{"version":"0","status":"affected","lessThan":"2.12.7+dfsg+really2.9.14-0.4ubuntu0.3","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.14+dfsg-1.3ubuntu3.5","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.13+dfsg-1ubuntu0.9","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.10+dfsg-5ubuntu0.20.04.10+esm2","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.4+dfsg1-6.1ubuntu1.9+esm5","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.3+dfsg1-1ubuntu0.7+esm10","versionType":"dpkg"},{"version":"0","status":"affected","lessThan":"2.9.1+dfsg1-3ubuntu4.13+esm9","versionType":"dpkg"}],"collectionURL":"https://gitlab.gnome.org/GNOME/libxml2","modules":["xpath"],"platforms":["Linux"],"programFiles":["xpath.c"],"repo":"https://gitlab.gnome.org/GNOME/libxml2"}],"references":[{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21","tags":["patch"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.2,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","description":"CWE-674 Uncontrolled Recursion","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2025-09-10T18:43:12.204Z"},"credits":[{"lang":"en","type":"reporter","value":"Nikita Sveshnikov (Positive Technologies)"}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-09-10T18:46:42.383800Z","id":"CVE-2025-9714","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-09-10T18:46:46.622Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00035.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T18:14:19.914Z"}},{"affected":[{"vendor":"Siemens","product":"RUGGEDCOM ROX MX5000","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX MX5000RE","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1400","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1500","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1501","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1510","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1511","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1512","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1524","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX1536","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM ROX RX5000","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V2.17.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-577017.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-05-12T12:02:43.668Z"},"x_adpType":"supplier"}]}}}