Description
The xmlParseXMLDecl function in parser.c in libxml2 before 2.9.3 allows context-dependent attackers to obtain sensitive information via an (1) unterminated encoding value or (2) incomplete XML declaration in XML data, which triggers an out-of-bounds heap read.
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.2+zdfsg1-4 | — |
| Debian 13 | libxml2 | 2.9.2+zdfsg1-4 | — |
| Debian 12 | libxml2 | 2.9.2+zdfsg1-4 | — |
| Debian 8 | libxml2 | 2.9.1+dfsg1-5+deb8u1 | DSA-3430-1 |
| Debian 7 | libxml2 | 2.8.0+dfsg1-7+wheezy5 | DSA-3430-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | libxml2 | 2.7.8.dfsg-2+squeeze15 | DLA-355-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | libxml2 | 2.9.1+dfsg1-3ubuntu4.6 | USN-2834-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | libxml2 +3 | 2.9.1-6.el7_2.2 | RHSA-2015:2550 |
| RHEL 6 | libxml2 +3 | 2.7.6-20.el6_7.1 | RHSA-2015:2549 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | libxml2 +1 | 2.9.1-13.1 | SUSE-SU-2016:0049-1 |
| SLES 12 | libxml2 +1 | 2.9.1-13.1 | SUSE-SU-2016:0049-1 |
| SLES 11 SP4 | libxml2 | 2.7.6-0.34.1 | SUSE-SU-2016:0030-1 |
| SLES 11 SP4 | libxml2-python | 2.7.6-0.34.4 | SUSE-SU-2016:0030-1 |
| SLES 11 SP3 | libxml2 | 2.7.6-0.34.1 | SUSE-SU-2016:0030-1 |
| SLES 11 SP3 | libxml2-python | 2.7.6-0.34.4 | SUSE-SU-2016:0030-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | libxml2 +1 | 2.9.1-13.1 | SUSE-SU-2016:0049-1 |
| SLES for SAP 12 | libxml2 +1 | 2.9.1-13.1 | SUSE-SU-2016:0049-1 |
| SLES for SAP 11 SP4 | libxml2 | 2.7.6-0.34.1 | SUSE-SU-2016:0030-1 |
| SLES for SAP 11 SP4 | libxml2-python | 2.7.6-0.34.4 | SUSE-SU-2016:0030-1 |
| SLES for SAP 11 SP3 | libxml2 | 2.7.6-0.34.1 | SUSE-SU-2016:0030-1 |
| SLES for SAP 11 SP3 | libxml2-python | 2.7.6-0.34.4 | SUSE-SU-2016:0030-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ruby3.2-rubygem-nokogiri | 1.13.9-1.7 | openSUSE-SU-2024:13165-1 |
| openSUSE Tumbleweed | rubygem-nokogiri | 1.6.8.1-1.3 | openSUSE-SU-2026:10356-1, openSUSE-SU-2025:14697-1, openSUSE-SU-2024:14174-1 |
Advisories 15
- RHSA-2015:2549 Red Hat Security Advisory: libxml2 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2015:2550 Red Hat Security Advisory: libxml2 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-2834-1 libxml2 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 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
- DLA-355-1 libxml2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3430-1 libxml2 - security update Debian Security (DSA / DLA) · Mar 9, 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:10549-1 ruby2.2-rubygem-nokogiri-1.6.8.1-1.3 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
- SUSE-SU-2016:0030-1 Security update for libxml2 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-2016:0049-1 Security update for libxml2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11912-1 ruby3.1-rubygem-nokogiri-1.13.3-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3389 libxml2: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2025
- WID-SEC-2023-1614 Tenable Security Nessus Network Monitor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 25, 2023
References
- openSUSE-SU-2016:0106 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1281930
- DSA-3430 vendor-advisory
- APPLE-SA-2016-07-18-4 vendor-advisory
- APPLE-SA-2016-07-18-3 vendor-advisory
- APPLE-SA-2016-07-18-2 vendor-advisory
- https://support.apple.com/HT206901
- RHSA-2016:1089 vendor-advisory
- https://bugzilla.gnome.org/show_bug.cgi?id=751603
- https://git.gnome.org/browse/libxml2/commit/?id=9aa37588ee78a06ca1379a9d9356eab16686099c
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- 91826 vdb-entry
- USN-2834-1 vendor-advisory
- APPLE-SA-2016-07-18-1 vendor-advisory
- APPLE-SA-2016-07-18-6 vendor-advisory
- 1034243 vdb-entry
- RHSA-2015:2549 vendor-advisory
- https://blog.fuzzing-project.org/28-Libxml2-Several-out-of-bounds-reads.html
- HPSBGN03537 vendor-advisory
- https://git.gnome.org/browse/libxml2/commit/?id=709a952110e98621c9b78c4f26462a9d8333102e
- 77681 vdb-entry
- [oss-security] 20151122 Re: Libxml2: Several out of bounds reads mailing-list
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04944172
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- [oss-security] 20151121 Libxml2: Several out of bounds reads mailing-list
- openSUSE-SU-2015:2372 vendor-advisory
- https://support.apple.com/HT206905
- https://support.apple.com/HT206903
- https://bugzilla.gnome.org/show_bug.cgi?id=751631
- https://support.apple.com/HT206902
- https://support.apple.com/HT206904
- https://support.apple.com/HT206899