CVE-2025-9714Stack overflow in libxml2
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libxml2 | Fixed | 2.9.14+dfsg-1.3ubuntu3.5 | UBUNTU-CVE-2025-9714 |
| Ubuntu 22.04 | libxml2 | Fixed | 2.9.13+dfsg-1ubuntu0.9 | UBUNTU-CVE-2025-9714 |
| Ubuntu 20.04 | libxml2 | Fix pending | 2.9.10+dfsg-5ubuntu0.20.04.10+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-9714 |
| Ubuntu 18.04 | libxml2 | Fix pending | 2.9.4+dfsg1-6.1ubuntu1.9+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-9714 |
| Ubuntu 16.04 | libxml2 | Fix pending | 2.9.3+dfsg1-1ubuntu0.7+esm10 (Ubuntu Pro) | UBUNTU-CVE-2025-9714 |
| Ubuntu 14.04 | libxml2 | Fix pending | 2.9.1+dfsg1-3ubuntu4.13+esm9 (Ubuntu Pro) | UBUNTU-CVE-2025-9714 |
| Debian 14 | libxml2 | Fixed | 2.14.5+dfsg-0.1 | DEBIAN-CVE-2025-9714 |
| Debian 13 | libxml2 | Fixed | 2.12.7+dfsg+really2.9.14-2.1+deb13u2 | DEBIAN-CVE-2025-9714 |
| Debian 12 | libxml2 | Fixed | 2.9.14+dfsg-1.3~deb12u5 | DEBIAN-CVE-2025-9714 |
| Red Hat Enterprise Linux 10 | libxml2 | Not affected | ||
| Red Hat Enterprise Linux 10 | libxml2-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libxml2-static | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-libxml2 | Not affected | ||
| Red Hat Enterprise Linux 9 | libxml2 | Fixed | 0:2.9.13-14.el9_7 | RHSA-2025:22376 |
| Red Hat Enterprise Linux 9 | libxml2-devel | Fixed | 0:2.9.13-14.el9_7 | RHSA-2025:22376 |
| Red Hat Enterprise Linux 9 | python3-libxml2 | Fixed | 0:2.9.13-14.el9_7 | RHSA-2025:22376 |
| Red Hat Enterprise Linux 8 | libxml2 | Fixed | 0:2.9.7-21.el8_10.4 | RHSA-2026:11349 |
| Red Hat Enterprise Linux 8 | libxml2-devel | Fixed | 0:2.9.7-21.el8_10.4 | RHSA-2026:11349 |
| Red Hat Enterprise Linux 8 | python3-libxml2 | Fixed | 0:2.9.7-21.el8_10.4 | RHSA-2026:11349 |
| Red Hat Enterprise Linux 6 | libxml2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-static | Will not fix Out of support scope | ||
| AlmaLinux 9 | libxml2 | Fixed | 2.9.13-14.el9_7 | ALSA-2025:22376 |
| AlmaLinux 9 | libxml2-devel | Fixed | 2.9.13-14.el9_7 | ALSA-2025:22376 |
| AlmaLinux 9 | python3-libxml2 | Fixed | 2.9.13-14.el9_7 | ALSA-2025:22376 |
| AlmaLinux 8 | libxml2 | Fixed | 2.9.7-21.el8_10.8 | ALSA-2026:11349 |
| AlmaLinux 8 | libxml2-devel | Fixed | 2.9.7-21.el8_10.4 | ALSA-2026:69655 |
| AlmaLinux 8 | python3-libxml2 | Fixed | 2.9.7-21.el8_10.8 | ALSA-2026:11349 |
| Rocky Linux 9 | libxml2 | Fixed | 0:2.9.13-14.el9_7 | RLSA-2025:22376 |
| Rocky Linux 8 | libxml2 | Fixed | 0:2.9.7-21.el8_10.4 | RLSA-2026:11349 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libxml2: affected: 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; fixed in
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
Vendor advisories:
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.