# CVE-2025-9714: Stack overflow in libxml2

- Severity: Medium 6.2 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-09-10T18:43:12.204Z
- Modified: 2026-10-19T17:10:00.173Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- 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; before 2.9.3+dfsg1-1ubuntu0.7+esm10; before 2.9.1+dfsg1-3ubuntu4.13+esm9
- xmlsoft libxml2: before 2.10.0

## Every score

- canonical: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://gitlab.gnome.org/GNOME/libxml2/-/commit/677a42645ef22b5a50741bad5facf9d8a8bc6d21> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00035.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-577017.html>

## Sources

- CVE List: [CVE-2025-9714](https://www.cve.org/CVERecord?id=CVE-2025-9714), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2025-9714](https://nvd.nist.gov/vuln/detail/CVE-2025-9714), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-9714 · Whole record: https://cve.day/CVE-2025-9714.json · Rebuilt by cve.day 2026-11-25T22:59:04.506Z
