Description
In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is affected as well.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxml2 | 2.9.14+dfsg-1 | — |
| Debian 13 | libxml2 | 2.9.14+dfsg-1 | — |
| Debian 12 | libxml2 | 2.9.14+dfsg-1 | — |
| Debian 11 | libxml2 | 2.9.10+dfsg-6.7+deb11u2 | DSA-5142-1 |
| Debian 10 | libxml2 | 2.9.4+dfsg1-7+deb10u4 | DSA-5142-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | libxml2 | 2.9.4+dfsg1-2.2+deb9u7 | DLA-3012-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.1 | USN-5422-1 |
| Ubuntu 20.04 LTS | libxml2 | 2.9.10+dfsg-5ubuntu0.20.04.3 | USN-5422-1 |
| Ubuntu 18.04 LTS | libxml2 | 2.9.4+dfsg1-6.1ubuntu1.6 | USN-5422-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libxml2 | 2.9.3+dfsg1-1ubuntu0.7+esm2 | USN-5422-1 |
| Ubuntu Pro 14.04 LTS | libxml2 | 2.9.1+dfsg1-3ubuntu4.13+esm3 | USN-5422-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | libxml2 +2 | 2.9.13-1.el9_0.1 | RHSA-2022:5250 |
| RHEL 8 | libxml2 +2 | 2.9.7-13.el8_6.1 | RHSA-2022:5317 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | libxml2 | 2.9.13-1.el9_0.1 | RLSA-2022:5250 |
| Rocky Linux 8 | libxml2 | 2.9.7-13.el8_6.1 | RLSA-2022:5317 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | libxml2 +1 | 2.9.14-150400.5.7.1 | SUSE-SU-2022:2552-1 |
| SLES 15 SP3 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLES 15 SP2 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLES 15 SP1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLES 15 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
Show 32 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES 12 SP4 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES 12 SP3 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES 12 SP2 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES 2 | python-libxml2-python | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SLES for SAP 15 SP3 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SLES for SAP 15 SP2 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLES for SAP 15 SP1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLES for SAP 15 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SLES for SAP 12 SP5 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES for SAP 12 SP4 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLES for SAP 12 SP3 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SLE Real Time 15 SP3 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SLE Micro 5.2 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLE Micro 5.1 | libxml2 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLE HPC 15 SP3 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SLE HPC 15 SP2 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLE HPC 15 SP1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SLE HPC 15 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SUSE OpenStack Cloud Crowbar 9 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SUSE OpenStack Cloud Crowbar 8 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SUSE OpenStack Cloud 9 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SUSE OpenStack Cloud 8 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SUSE Manager Server 4.2 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SUSE Manager Server 4.1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SUSE Manager Retail Branch Server 4.1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SUSE Manager Proxy 4.2 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SUSE Manager Proxy 4.1 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
| SUSE HPE Helion OpenStack 8 | libxml2 +1 | 2.9.4-46.54.3 | SUSE-SU-2022:1833-1 |
| SUSE Enterprise Storage 7.1 | libxml2 +1 | 2.9.7-150000.3.57.1 | SUSE-SU-2023:2048-1 |
| SUSE Enterprise Storage 7 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| SUSE Enterprise Storage 6 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libxml2 | 2.9.14-1.1 | openSUSE-SU-2024:12043-1 |
| openSUSE Tumbleweed | ruby3.2-rubygem-nokogiri | 1.13.9-1.7 | openSUSE-SU-2024:13165-1 |
| openSUSE Tumbleweed | rubygem-nokogiri | 1.13.6-1.1 | openSUSE-SU-2026:10356-1, openSUSE-SU-2025:14697-1, openSUSE-SU-2024:14174-1 |
| openSUSE Leap 15.4 | libxml2 +1 | 2.9.14-150400.5.7.1 | SUSE-SU-2022:2552-1 |
| openSUSE Leap 15.4 | python-libxml2-python | 2.9.7-150000.3.46.1 | SUSE-SU-2023:2048-1, SUSE-SU-2022:1750-1 |
| openSUSE Leap 15.3 | libxml2 +1 | 2.9.7-150000.3.46.1 | SUSE-SU-2022:1750-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.23 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.22 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.21 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.20 | libxml2 | 2.9.14-r0 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.18 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.17 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.16 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.15 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.14 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.13 | libxml2 | 2.9.14-r0 | — |
| Alpine v3.12 | libxml2 | 2.9.14-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libxml2 +3 | 2.10.3-2.amzn2023.0.1 | ALAS2023-2023-096 |
| Amazon Linux 2 | libxml2 +3 | 2.9.1-6.amzn2.5.6 | ALAS2-2022-1848 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | libxml2 | 2.9.14-1 | — |
| Azure Linux 2 (CBL-Mariner) | libxslt | 1.1.34-7 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | libxml2 +2 | 2.9.13-1.el9_0.1 | ELSA-2022-5250 |
| Oracle Linux 8 | libxml2 +2 | 2.9.7-13.el8_6.1 | ELSA-2022-5317 |
Advisories 31
- RHSA-2022:5317 Red Hat Security Advisory: libxml2 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- RHSA-2022:5250 Red Hat Security Advisory: libxml2 security update Red Hat Security Advisories (RHSA) · Sep 21, 2026
- USN-5422-1 libxml2 vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- WID-SEC-2022-1776 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2026
- openSUSE-SU-2026:10356-1 ruby4.0-rubygem-nokogiri-1.18.9-1.4 on GA media SUSE / openSUSE Security Updates · Mar 14, 2026
- DSA-5142-1 libxml2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3012-1 libxml2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:5317 Moderate: libxml2 security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2022:5250 Moderate: libxml2 security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:2048-1 Security update for libxml2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1750-1 Security update for libxml2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14697-1 ruby3.4-rubygem-nokogiri-1.18.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12043-1 libxml2-2-2.9.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13165-1 ruby3.2-rubygem-nokogiri-1.13.9-1.7 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14174-1 ruby3.3-rubygem-nokogiri-1.15.5-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2552-1 Security update for libxml2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1833-1 Security update for libxml2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12085-1 ruby3.1-rubygem-nokogiri-1.13.6-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1335 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- WID-SEC-2022-0008 libxml2: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Jun 30, 2025
- VDE-2022-046 PHOENIX CONTACT: Multiple Linux component vulnerabilities in PLCnext Firmware CERT@VDE · May 22, 2025
- WID-SEC-2023-0137 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2024
- WID-SEC-2023-2778 Google Android: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 30, 2023
- WID-SEC-2023-1614 Tenable Security Nessus Network Monitor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 25, 2023
- WID-SEC-2023-0132 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 1, 2023
- ALAS2023-2023-096 Moderate: libxml2 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
- ALAS2-2022-1848 Moderate: libxml2 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 10, 2022
- ELSA-2022-5317 Moderate: libxml2 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 1, 2022
- ELSA-2022-5250 Moderate: libxml2 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 30, 2022
References
- https://gitlab.gnome.org/GNOME/libxslt/-/tags
- FEDORA-2022-9136d646e4 vendor-advisory
- FEDORA-2022-be6d83642a vendor-advisory
- [debian-lts-announce] 20220516 [SECURITY] [DLA 3012-1] libxml2 security update mailing-list
- FEDORA-2022-f624aad735 vendor-advisory
- DSA-5142 vendor-advisory
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.9.14
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/2554a2408e09f13652049e5ffb0d26196b02ebab
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/6c283d83eccd940bcde15634ac8c7f100e3caefd
- http://packetstormsecurity.com/files/167345/libxml2-xmlBufAdd-Heap-Buffer-Overflow.html
- https://security.netapp.com/advisory/ntap-20220715-0006/
- GLSA-202210-03 vendor-advisory
- http://packetstormsecurity.com/files/169825/libxml2-xmlParseNameComplex-Integer-Overflow.html