CVE-2021-3537 json
Nokogiri Implements libxml2 version vulnerable to null pointer dereferencing
published 5y ago modified 26d ago also EUVD-2022-1938 , GHSA-286v-pcf5-25rc , JLSEC-2025-70
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems nokogiri 1.11.4
- julia XML2_jll 2.9.12+0
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- libxml2 Debian 14, Debian 13, Debian 12 2.9.10+dfsg-6.6
debian advisories DEBIAN-CVE-2021-3537
- libxml2 Ubuntu 18.04 LTS 2.9.4+dfsg1-6.1ubuntu1.4
- libxml2 Ubuntu 20.04 LTS 2.9.10+dfsg-5ubuntu0.20.04.1
- libxml2 Ubuntu Pro 14.04 LTS 2.9.1+dfsg1-3ubuntu4.13+esm2
- libxml2 Ubuntu Pro 16.04 LTS 2.9.3+dfsg1-1ubuntu0.7+esm1
ubuntu advisories UBUNTU-CVE-2021-3537
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- jbcs-httpd24-curl jboss core services 1 7.78.0-3.jbcs.el7
- jbcs-httpd24-curl jboss core services 1 7.78.0-3.el8jbcs
- jbcs-httpd24-httpd jboss core services 1 2.4.37-80.jbcs.el7
- jbcs-httpd24-httpd jboss core services 1 2.4.37-80.el8jbcs
- jbcs-httpd24-mod_jk jboss core services 1 1.2.48-29.redhat_1.jbcs.el7
- jbcs-httpd24-mod_jk jboss core services 1 1.2.48-29.redhat_1.el8jbcs
- jbcs-httpd24-mod_md jboss core services 1 1:2.0.8-41.jbcs.el7
- jbcs-httpd24-mod_md jboss core services 1 1:2.0.8-41.el8jbcs
red hat advisories RHSA-2022:1389RHSA-2021:2569
- libxml2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 2.9.4-46.43.1
- python-libxml2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 2.9.4-46.43.1
- libxml2 SLE Module for Basesystem 15 SP3, SLE Module for Basesystem 15 SP2, SLE Micro 5.0 2.9.7-3.34.1
- python-libxml2-python SLE Module for Python 2 15 SP3, SLE Module for Python 2 15 SP2, SLE Module for Basesystem 15 SP3 +1 more 2.9.7-3.34.1
- libxml2 SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 2.7.6-0.77.36.1
- libxml2-python SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 2.7.6-0.77.36.1
suse advisories SUSE-SU-2021:1658-1SUSE-SU-2021:1654-1SUSE-SU-2021:14729-1
- rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
- rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
- rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
- libxml2 openSUSE Tumbleweed 2.9.12-1.2
- rubygem-nokogiri openSUSE Tumbleweed 1.13.3-1.1
- ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.13.9-1.7
- libxml2 openSUSE Leap 15.2 2.9.7-lp152.10.12.1
- python-libxml2-python openSUSE Leap 15.2 2.9.7-lp152.10.12.1
opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:11016-1openSUSE-SU-2024:11912-1openSUSE-SU-2024:13165-1
- libxml2 Rocky Linux 8 2.9.7-9.el8_4.2
rocky linux advisories RLSA-2021:2569
- libxml2 Alpine 3.10 2.9.9-r5
- libxml2 Alpine 3.11 2.9.10-r5
- libxml2 Alpine 3.12 2.9.10-r6
- libxml2 Alpine 3.13 2.9.10-r7
- libxml2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 2.9.11-r0
alpine advisories ALPINE-CVE-2021-3537
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libxml2 Arch Linux 2.9.11-1
arch linux advisories AVG-1883
Is CVE-2021-3537 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3537 updated cvss 7.5
libxml2: NULL pointer dereference when post-validating mixed content parsed in recovery mode
-
Red Hat Enterprise Linux 6 libxml2, libxml2-python Red Hat Enterprise Linux 7 libxml2, libxml2-pythonaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) libxml2-devel 2.9.7-9.el8_4.2, libxml2-debuginfo 2.9.7-9.el8_4.2, libxml2-debugsource 2.9.7-9.el8_4.2, python3-libxml2-debuginfo 2.9.7-9.el8_4.2 Red Hat Enterprise Linux BaseOS (v. 8) libxml2 2.9.7-9.el8_4.2, python3-libxml2 2.9.7-9.el8_4.2fixed: vendor fix RHSA-2021:2569
-
Red Hat JBoss Core Servicesfixed: vendor fix RHSA-2022:1390
-
Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-curl 7.78.0-3.jbcs.el7, jbcs-httpd24-httpd 2.4.37-80.jbcs.el7, jbcs-httpd24-mod_md 2.0.8-41.jbcs.el7, jbcs-httpd24-libcurl 7.78.0-3.jbcs.el7, jbcs-httpd24-apr-util 1.6.1-91.jbcs.el7, jbcs-httpd24-mod_ssl 2.4.37-80.jbcs.el7, +25 more Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-curl 7.78.0-3.el8jbcs, jbcs-httpd24-httpd 2.4.37-80.el8jbcs, jbcs-httpd24-mod_md 2.0.8-41.el8jbcs, jbcs-httpd24-libcurl 7.78.0-3.el8jbcs, jbcs-httpd24-apr-util 1.6.1-91.el8jbcs, jbcs-httpd24-mod_ssl 2.4.37-80.el8jbcs, +25 morefixed: vendor fix RHSA-2022:1389
-
Red Hat Migration Toolkit 1.4 rhmtc/openshift-migration-ui-rhel8 v1.4.6-4, rhmtc/openshift-velero-plugin-rhel8 v1.4.6-4, rhmtc/openshift-migration-velero-rhel8 v1.4.6-5, rhmtc/openshift-migration-registry-rhel8 v1.4.6-4, rhmtc/openshift-migration-operator-bundle v1.4.6-5, rhmtc/openshift-migration-controller-rhel8 v1.4.6-4, +7 morefixed: vendor fix RHBA-2021:2854
-
Red Hat Enterprise Linux 9 libxml2, python3-libxml2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-348-10 updated cvss 5.9
Siemens SIMATIC S7-1500
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5affected: fixed in V3.1.5, mitigation support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-21-336-06 updated cvss 5.9
Hitachi Energy APM Edge
-
Hitachi Energy APM Edge 3.0, 2.0, 1.0affected: vendor fix, mitigation “Physically protect process control systems from direct access by unauthorized personnel.” search.abb.com
From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf
Exploit prediction
3.60% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | nokogiri | <1.11.4 |
1.11.4 |
| julia | XML2_jll | <2.9.12+0 |
2.9.12+0 |
Affected products
- n/a libxml2
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
bugzilla.redhat.com
/show_bug.cgi?id=1956522
web, issue-tracking, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6/
vendor-advisory, web
-
security.gentoo.org
/glsa/202107-05
vendor-advisory, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2021/05/msg00008.html
mailing-list, web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20210625-0002/
third-party-advisory, web
-
oracle.com
/security-alerts/cpujul2022.html
web, not-applicable
- cert-portal.siemens.com /productcert/html/ssa-398330.html
-
nvd.nist.gov
/vuln/detail/CVE-2021-3537
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2021-3537.yml
web
-
github.com
/sparklemotion/nokogiri
package
-
github.com
/sparklemotion/nokogiri/blob/2edbbef95f1dc12c1ddc5ebda71b9159026245fe/CHANGELOG.md?plain=1#L722
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV
web
-
nokogiri.org
/CHANGELOG.html#1114-2021-05-14
web
-
security.netapp.com
/advisory/ntap-20210625-0002
web
Sources
- CVE List CVE-2021-3537
- GitHub Advisory GHSA-286v-pcf5-25rc
- NVD CVE-2021-3537
- OSV JLSEC-2025-70
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.