CVE-2026-0989Libxml2: unbounded relaxng include recursion leading to stack overflow
A flaw was identified in the RelaxNG parser of libxml2 related to how external schema inclusions are handled. The parser does not enforce a limit on inclusion depth when resolving nested <include> directives. Specially crafted or overly complex schemas can cause excessive recursion during parsing. This may lead to stack exhaustion and application crashes, creating a denial-of-service risk.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have 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 25.10 | libxml2 | Fixed | 2.14.5+dfsg-0.2ubuntu0.1 | UBUNTU-CVE-2026-0989 |
| Ubuntu 24.04 | libxml2 | Fixed | 2.9.14+dfsg-1.3ubuntu3.7 | UBUNTU-CVE-2026-0989 |
| Ubuntu 22.04 | libxml2 | Fixed | 2.9.13+dfsg-1ubuntu0.11 | UBUNTU-CVE-2026-0989 |
| Ubuntu 20.04 | libxml2 | Fix pending | 2.9.10+dfsg-5ubuntu0.20.04.10+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-0989 |
| Ubuntu 18.04 | libxml2 | Fix pending | 2.9.4+dfsg1-6.1ubuntu1.9+esm7 (Ubuntu Pro) | UBUNTU-CVE-2026-0989 |
| Ubuntu 16.04 | libxml2 | Fix pending | 2.9.3+dfsg1-1ubuntu0.7+esm12 (Ubuntu Pro) | UBUNTU-CVE-2026-0989 |
| Ubuntu 14.04 | libxml2 | Fix pending | 2.9.1+dfsg1-3ubuntu4.13+esm11 (Ubuntu Pro) | UBUNTU-CVE-2026-0989 |
| Debian 14 | libxml2 | Fixed | 2.15.2+dfsg-0.1 | DEBIAN-CVE-2026-0989 |
| Debian 13 | libxml2 | Fixed | 2.12.7+dfsg+really2.9.14-2.1+deb13u3 | DEBIAN-CVE-2026-0989 |
| Debian 12 | libxml2 | Fixed | 2.9.14+dfsg-1.3~deb12u6 | DEBIAN-CVE-2026-0989 |
| Red Hat Enterprise Linux 10 | libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libxml2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libxml2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libxml2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libxml2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libxml2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libxml2-python | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libxml2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libxml2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libxml2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libxml2-python | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libxml2-static | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Hardened Images
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat JBoss Core Services
- Red Hat OpenShift AI (RHOAI)
Workaround: To mitigate this issue, restrict applications using libxml2 from processing untrusted RelaxNG schema files. Implement strict input validation and sanitization for all RelaxNG schema inputs to prevent the parsing of maliciously crafted, deeply nested include directives.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:7519 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:7519
- https://access.redhat.com/security/cve/CVE-2026-0989
- https://bugzilla.redhat.com/show_bug.cgi?id=2429933
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/998
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.