Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-3537 EUVD-2022-1938GHSA-286v-pcf5-25rc

Nokogiri Implements libxml2 version vulnerable to null pointer dereferencing

Published May 14, 2021 · Updated Oct 14, 2026 · Assigned by redhat

Description

A vulnerability found in libxml2 in versions before 2.9.11 shows that it did not propagate errors while parsing XML mixed content, causing a NULL dereference. If an untrusted XML document was parsed in recovery mode and post-validated, the flaw could be used to crash the application. The highest threat from this vulnerability is to system availability.

Affected products

VendorProductAffectedFixed
— libxml2 libxml2 2.9.11 —

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.

ReleasePackageFixed inAdvisory
Debian 14 libxml2 2.9.10+dfsg-6.6 —
Debian 13 libxml2 2.9.10+dfsg-6.6 —
Debian 12 libxml2 2.9.10+dfsg-6.6 —
Debian 9 libxml2 2.9.4+dfsg1-2.2+deb9u4 DLA-2653-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libxml2 2.9.10+dfsg-5ubuntu0.20.04.1 USN-4991-1
Ubuntu 18.04 LTS libxml2 2.9.4+dfsg1-6.1ubuntu1.4 USN-4991-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS libxml2 2.9.3+dfsg1-1ubuntu0.7+esm1 USN-4991-1
Ubuntu Pro 14.04 LTS libxml2 2.9.1+dfsg1-3ubuntu4.13+esm2 USN-4991-1
ReleasePackageFixed inAdvisory
RHEL 8 libxml2 +2 2.9.7-9.el8_4.2 RHSA-2021:2569
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Core Services 1 jbcs-httpd24-apr-util +8 1.6.1-91.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 7.78.0-3.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.37-80.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_cluster-native 1.3.16-10.Final_redhat_2.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 1.15.7-22.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_jk +2 1.2.48-29.redhat_1.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_md 1:2.0.8-41.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_security 2.9.2-68.GA.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.37-80.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-nghttp2 +1 1.39.2-41.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl +4 1:1.1.1g-11.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl-chil 1.0.0-11.el8jbcs RHSA-2022:1389
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl-pkcs11 0.4.10-26.el8jbcs RHSA-2022:1389

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libxml2-devel 2.9.7-9.el8_4.2 ALSA-2021:2569

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libxml2 2.9.7-9.el8_4.2 RLSA-2021:2569
ReleasePackageFixed inAdvisory
SLES 15 SP3 libxml2 +1 2.9.7-3.34.1 SUSE-SU-2021:1654-1
SLES 15 SP2 libxml2 +1 2.9.7-3.34.1 SUSE-SU-2021:1654-1
SLES 12 SP5 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLES 12 SP4 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLES 12 SP3 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP2 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLES 11 SP4 libxml2 +1 2.7.6-0.77.36.1 SUSE-SU-2021:14729-1
SLES 2 python-libxml2-python 2.9.7-3.34.1 SUSE-SU-2021:1654-1
SLES for SAP 12 SP5 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLES for SAP 12 SP4 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLES for SAP 12 SP3 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SLE Micro 5.0 libxml2 2.9.7-3.34.1 SUSE-SU-2021:1654-1
SUSE OpenStack Cloud Crowbar 9 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SUSE OpenStack Cloud Crowbar 8 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SUSE OpenStack Cloud 9 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SUSE OpenStack Cloud 8 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
SUSE Linux Enterprise Point of Sale 11 SP3 libxml2 +1 2.7.6-0.77.36.1 SUSE-SU-2021:14729-1
SUSE HPE Helion OpenStack 8 libxml2 +1 2.9.4-46.43.1 SUSE-SU-2021:1658-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libxml2 2.9.12-1.2 openSUSE-SU-2024:11016-1
openSUSE Tumbleweed ruby3.2-rubygem-nokogiri 1.13.9-1.7 openSUSE-SU-2024:13165-1
openSUSE Tumbleweed rubygem-nokogiri 1.13.3-1.1 openSUSE-SU-2026:10356-1, openSUSE-SU-2025:14697-1, openSUSE-SU-2024:14174-1
openSUSE Leap 15.2 libxml2 +1 2.9.7-lp152.10.12.1 openSUSE-SU-2021:0764-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libxml2 2.9.11-r0 —
Alpine v3.23 libxml2 2.9.11-r0 —
Alpine v3.22 libxml2 2.9.11-r0 —
Alpine v3.21 libxml2 2.9.11-r0 —
Alpine v3.20 libxml2 2.9.11-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libxml2 2.9.11-r0 —
Alpine v3.18 libxml2 2.9.11-r0 —
Alpine v3.17 libxml2 2.9.11-r0 —
Alpine v3.16 libxml2 2.9.11-r0 —
Alpine v3.15 libxml2 2.9.11-r0 —
Alpine v3.14 libxml2 2.9.11-r0 —
Alpine v3.13 libxml2 2.9.10-r7 —
Alpine v3.12 libxml2 2.9.10-r6 —
Alpine v3.11 libxml2 2.9.10-r5 —
Alpine v3.10 libxml2 2.9.9-r5 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libxml2 +3 2.9.1-6.amzn2.5.4 ALAS2-2021-1677

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libxml2 +2 2.9.7-9.0.1.el8_4.2 ELSA-2021-2569

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems nokogiri < 1.11.4 1.11.4 GHSA-286v-pcf5-25rc

Advisories 25

References