# CVE-2025-9714: Stack overflow in libxml2

- Priority: **Routine**
- Reason: Not severe (CVSS 6.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-10 · Modified: 2026-05-12
- Aliases: RHSA-2025:22162, RHSA-2025:22163, RHSA-2025:22177, RHSA-2025:22376, RHSA-2025:22377, RHSA-2026:11349, RHSA-2026:14832, RHSA-2026:14858, RHSA-2026:15967, RHSA-2026:22420, UBUNTU-CVE-2025-9714, USN-7743-1, DEBIAN-CVE-2025-9714, DLA-4319-1
- Record: https://cvemate.com/vulnerability/CVE-2025-9714 · JSON: https://cvemate.com/vulnerability/CVE-2025-9714/json

## Description

```text
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.
```

## Signals

- CVSS: 6.2 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.176%, percentile 7.41%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libxml2 (Debian): \< 2.9.10+dfsg-6.7+deb11u9 \| \< 2.9.14+dfsg-1.3~deb12u5 \| \< 2.12.7+dfsg+really2.9.14-2.1+deb13u2 \| \< 2.14.5+dfsg-0.1
- ubuntu libxml2 (Ubuntu): \< 2.9.1+dfsg1-3ubuntu4.13+esm9 \| \< 2.9.3+dfsg1-1ubuntu0.7+esm10 \| \< 2.9.4+dfsg1-6.1ubuntu1.9+esm5 \| \< 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 \| \< 2.9.13+dfsg-1ubuntu0.9 \| \< 2.9.14+dfsg-1.3ubuntu3.5
- libxml2 libxml2: \< 2.10.0 \| \< 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 \| \< 2.9.14+dfsg-1.3ubuntu3.5 \| \< 2.9.13+dfsg-1ubuntu0.9 \| \< 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 \| \< 2.9.4+dfsg1-6.1ubuntu1.9+esm5 \| \< 2.9.3+dfsg1-1ubuntu0.7+esm10 \| \< 2.9.1+dfsg1-3ubuntu4.13+esm9
- redhat libxml2 (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13 \| \< 0:2.9.1-6.el7\_9.14
- redhat libxml2-debuginfo (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13 \| \< 0:2.9.1-6.el7\_9.14
- redhat libxml2-debugsource (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13
- redhat libxml2-devel (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13 \| \< 0:2.9.1-6.el7\_9.14
- redhat libxml2-python (Red Hat): \< 0:2.9.1-6.el7\_9.14
- redhat libxml2-static (Red Hat): \< 0:2.9.1-6.el7\_9.14
- redhat python3-libxml2 (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13
- redhat python3-libxml2-debuginfo (Red Hat): \< 0:2.9.13-3.el9\_2.10 \| \< 0:2.9.13-13.el9\_4 \| \< 0:2.9.13-1.el9\_0.8 \| \< 0:2.9.13-14.el9\_7 \| \< 0:2.9.13-12.el9\_6.1 \| \< 0:2.9.7-21.el8\_10.4 \| \< 0:2.9.7-9.el8\_4.9 \| \< 0:2.9.7-16.el8\_8.13 \| \< 0:2.9.7-13.el8\_6.13
- xmlsoft libxml2: \< 2.10.0

## References (first 20 of 32)

- <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>
- <https://access.redhat.com/errata/RHSA-2025:22162>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2392605>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_22162.json>
- <https://access.redhat.com/security/cve/CVE-2025-9714>
- <https://www.cve.org/CVERecord?id=CVE-2025-9714>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-9714>
- <https://gitlab.gnome.org/GNOME/libxslt/-/issues/148>
- <https://access.redhat.com/errata/RHSA-2025:22163>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_22163.json>
- <https://access.redhat.com/errata/RHSA-2025:22177>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_22177.json>
- <https://access.redhat.com/errata/RHSA-2025:22376>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_22376.json>
- <https://access.redhat.com/errata/RHSA-2025:22377>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_22377.json>
- <https://access.redhat.com/errata/RHSA-2026:11349>

---

Data as of 2026-12-05T03:52:41.125Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
