# CVE-2025-9714: libxml2: Uncontrolled recursion in XPath evaluation in libxml2 up to and includingversion 2.9.14 allows a local attacker to ca...

CVE-2025-9714 is fixed in 6 products on 1 platform, first by libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm5, released September 3, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-9714
- Priority: Routine
- CVSS: 6.2 (Medium)
- EPSS: 0.0016
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 3, 2025

## Description

Uncontrolled recursion in XPath evaluation in libxml2 up to and includingversion 2.9.14 allows a local attacker to cause a stack overflow viacrafted expressions. XPath processing functions `xmlXPathRunEval`,`xmlXPathCtxtCompile`, and `xmlXPathEvalExpr` were resetting recursiondepth to zero before making potentially recursive calls. When suchfunctions were called recursively this could allow for uncontrolledrecursion and lead to a stack overflow. These functions now preserverecursion depth across recursive calls, allowing recursion depth to becontrolled.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libxml2 Debian 11.6 (bullseye) | 2.9.10+dfsg-6.7+deb11u9 | [DLA-4319-1](https://patchblox.com/security/data/fix/linux/dla-4319-1.md) | Sep 30, 2025 |
| Linux | libxml2 Debian 12.15 (bookworm) | 2.9.14+dfsg-1.3~deb12u5 | [DEBIAN-CVE-2025-9714](https://patchblox.com/security/data/fix/linux/debian-cve-2025-9714.md) | Sep 10, 2025 |
| Linux | libxml2 Debian 13.5 (trixie) | 2.12.7+dfsg+really2.9.14-2.1+deb13u2 | [DEBIAN-CVE-2025-9714](https://patchblox.com/security/data/fix/linux/debian-cve-2025-9714.md) | Sep 10, 2025 |
| Linux | libxml2 Debian 14 | 2.14.5+dfsg-0.1 | [DEBIAN-CVE-2025-9714](https://patchblox.com/security/data/fix/linux/debian-cve-2025-9714.md) | Sep 10, 2025 |
| Linux | libxml2 RHEL 8 | 0:2.9.7-21.el8_10.4 | [RHSA-2026:11349](https://patchblox.com/security/data/fix/linux/rhsa-2026-11349.md) | Apr 30, 2026 |
| Linux | libxml2 RHEL 9 | 0:2.9.13-14.el9_7 | [RHSA-2025:22376](https://patchblox.com/security/data/fix/linux/rhsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | [libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm5.md) | Sep 3, 2025 |
| Linux | libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | [libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm2.md) | Sep 3, 2025 |
| Linux | libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.9 | [libxml2 2.9.13+dfsg-1ubuntu0.9](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-2.9.13-dfsg-1ubuntu0.9.md) | Sep 3, 2025 |
| Linux | libxml2 Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.5 | [libxml2 2.9.14+dfsg-1.3ubuntu3.5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libxml2-2.9.14-dfsg-1.3ubuntu3.5.md) | Sep 3, 2025 |
| Linux | libxml2 Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 | [libxml2 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libxml2-2.12.7-dfsg-really2.9.14-0.4ubuntu0.3.md) | Sep 4, 2025 |
| Linux | libxml2 almalinux 8 | 2.9.7-21.el8_10.8 | [ALSA-2026:69655](https://patchblox.com/security/data/fix/linux/alsa-2026-69655.md) | Sep 21, 2026 |
| Linux | libxml2 almalinux 9 | 2.9.13-14.el9_7 | [ALSA-2025:22376](https://patchblox.com/security/data/fix/linux/alsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2 ol 8 | 0:2.9.7-21.el8_10.4 | [ELSA-2026-11349](https://patchblox.com/security/data/fix/linux/elsa-2026-11349.md) | Apr 28, 2026 |
| Linux | libxml2 ol 9 | 0:2.9.13-14.el9_7 | [ELSA-2025-22376](https://patchblox.com/security/data/fix/linux/elsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2 rocky 8 | 0:2.9.7-21.el8_10.4 | [RLSA-2026:11349](https://patchblox.com/security/data/fix/linux/rlsa-2026-11349.md) | Apr 29, 2026 |
| Linux | libxml2 rocky 9 | 0:2.9.13-14.el9_7 | [RLSA-2025:22376](https://patchblox.com/security/data/fix/linux/rlsa-2025-22376.md) | Dec 2, 2025 |
| Linux | libxml2-devel RHEL 8 | 0:2.9.7-21.el8_10.4 | [RHSA-2026:11349](https://patchblox.com/security/data/fix/linux/rhsa-2026-11349.md) | Apr 30, 2026 |
| Linux | libxml2-devel RHEL 9 | 0:2.9.13-14.el9_7 | [RHSA-2025:22376](https://patchblox.com/security/data/fix/linux/rhsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2-devel almalinux 8 | 2.9.7-21.el8_10.8 | [ALSA-2026:69655](https://patchblox.com/security/data/fix/linux/alsa-2026-69655.md) | Sep 21, 2026 |
| Linux | libxml2-devel almalinux 9 | 2.9.13-14.el9_7 | [ALSA-2025:22376](https://patchblox.com/security/data/fix/linux/alsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2-devel ol 8 | 0:2.9.7-21.el8_10.4 | [ELSA-2026-11349](https://patchblox.com/security/data/fix/linux/elsa-2026-11349.md) | Apr 28, 2026 |
| Linux | libxml2-devel ol 9 | 0:2.9.13-14.el9_7 | [ELSA-2025-22376](https://patchblox.com/security/data/fix/linux/elsa-2025-22376.md) | Dec 1, 2025 |
| Linux | libxml2-utils Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | [libxml2-utils 2.9.4+dfsg1-6.1ubuntu1.9+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-utils-2.9.4-dfsg1-6.1ubuntu1.9-esm5.md) | Sep 3, 2025 |
| Linux | libxml2-utils Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | [libxml2-utils 2.9.10+dfsg-5ubuntu0.20.04.10+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-utils-2.9.10-dfsg-5ubuntu0.20.04.10-esm2.md) | Sep 3, 2025 |
| Linux | libxml2-utils Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.9 | [libxml2-utils 2.9.13+dfsg-1ubuntu0.9](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libxml2-utils-2.9.13-dfsg-1ubuntu0.9.md) | Sep 3, 2025 |
| Linux | libxml2-utils Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.5 | [libxml2-utils 2.9.14+dfsg-1.3ubuntu3.5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libxml2-utils-2.9.14-dfsg-1.3ubuntu3.5.md) | Sep 3, 2025 |
| Linux | libxml2-utils Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 | [libxml2-utils 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libxml2-utils-2.12.7-dfsg-really2.9.14-0.4ubuntu0.3.md) | Sep 4, 2025 |
| Linux | python-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | [python-libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm5.md) | Sep 3, 2025 |
| Linux | python-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | [python-libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm2.md) | Sep 3, 2025 |
| Linux | python-libxml2-python opensuse-leap 15.6 | 2.9.7-150000.3.88.1 | [SUSE-SU-2025:4115-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4115-1.md) | Nov 17, 2025 |
| Linux | python3-libxml2 RHEL 8 | 0:2.9.7-21.el8_10.4 | [RHSA-2026:11349](https://patchblox.com/security/data/fix/linux/rhsa-2026-11349.md) | Apr 30, 2026 |
| Linux | python3-libxml2 RHEL 9 | 0:2.9.13-14.el9_7 | [RHSA-2025:22376](https://patchblox.com/security/data/fix/linux/rhsa-2025-22376.md) | Dec 1, 2025 |
| Linux | python3-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.9+esm5 | [python3-libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-libxml2-2.9.4-dfsg1-6.1ubuntu1.9-esm5.md) | Sep 3, 2025 |
| Linux | python3-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 | [python3-libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-libxml2-2.9.10-dfsg-5ubuntu0.20.04.10-esm2.md) | Sep 3, 2025 |
| Linux | python3-libxml2 Ubuntu 22.04.1 LTS (jammy) | 2.9.13+dfsg-1ubuntu0.9 | [python3-libxml2 2.9.13+dfsg-1ubuntu0.9](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-libxml2-2.9.13-dfsg-1ubuntu0.9.md) | Sep 3, 2025 |
| Linux | python3-libxml2 Ubuntu 24.04.5 LTS (noble) | 2.9.14+dfsg-1.3ubuntu3.5 | [python3-libxml2 2.9.14+dfsg-1.3ubuntu3.5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-libxml2-2.9.14-dfsg-1.3ubuntu3.5.md) | Sep 3, 2025 |
| Linux | python3-libxml2 Ubuntu 25.04 (plucky) | 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3 | [python3-libxml2 2.12.7+dfsg+really2.9.14-0.4ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-libxml2-2.12.7-dfsg-really2.9.14-0.4ubuntu0.3.md) | Sep 4, 2025 |
| Linux | python3-libxml2 almalinux 8 | 2.9.7-21.el8_10.8 | [ALSA-2026:69655](https://patchblox.com/security/data/fix/linux/alsa-2026-69655.md) | Sep 21, 2026 |
| Linux | python3-libxml2 almalinux 9 | 2.9.13-14.el9_7 | [ALSA-2025:22376](https://patchblox.com/security/data/fix/linux/alsa-2025-22376.md) | Dec 1, 2025 |
| Linux | python3-libxml2 ol 8 | 0:2.9.7-21.el8_10.4 | [ELSA-2026-11349](https://patchblox.com/security/data/fix/linux/elsa-2026-11349.md) | Apr 28, 2026 |
| Linux | python3-libxml2 ol 9 | 0:2.9.13-14.el9_7 | [ELSA-2025-22376](https://patchblox.com/security/data/fix/linux/elsa-2025-22376.md) | Dec 1, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
