cve.bz

CVE-2021-3537 NULL Pointer Dereference

5.9 mediumEPSS 3.6%Fix available

Medium (5.9). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.11.4.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.6% (unchanged from 3.6% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3537 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3537?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3537?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3537 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-3537

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-3537](https://cve.bz/cve/badge/CVE-2021-3537.svg)](https://cve.bz/cve/CVE-2021-3537)

HTML:

<a href="https://cve.bz/cve/CVE-2021-3537"><img src="https://cve.bz/cve/badge/CVE-2021-3537.svg" alt="CVE-2021-3537"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:libxml2before 2.9.11
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
debian:debian_linux9.0
fedoraproject:fedora33
fedoraproject:fedora34
oracle:communications_cloud_native_core_network_function_cloud_native_environment1.10.0
oracle:enterprise_manager_base_platform13.4.0.0
oracle:enterprise_manager_base_platform13.5.0.0
oracle:enterprise_manager_ops_center12.4.0.0
oracle:mysql_workbenchthrough 8.0.26
oracle:openjdk8:update301
oracle:peoplesoft_enterprise_peopletools8.58
oracle:real_user_experience_insight13.4.1.0
oracle:real_user_experience_insight13.5.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-286v-pcf5-25rcRubyGemsnokogiri<1.11.41.11.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxml22.9.4+dfsg1-2.2+deb9u4DLA-2653-1
Debian12, 13, 14libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3537
Ubuntu18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.4UBUNTU-CVE-2021-3537 USN-4991-1
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-3537 USN-4991-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm2UBUNTU-CVE-2021-3537 USN-4991-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm1UBUNTU-CVE-2021-3537 USN-4991-1
Red Hatenterprise_linux:8::appstreamlibxml2-devel, libxml2-debuginfo, libxml2-debugsource and 1 more0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hatenterprise_linux:8::baseoslibxml2, python3-libxml2, libxml2-debuginfo and 2 more0:2.9.7-9.el8_4.2RHSA-2021:2569
Red Hatjboss_core_services:1::el7jbcs-httpd24-apr-util, jbcs-httpd24-apr-util-nss, jbcs-httpd24-apr-util-ldap and 7 more0:1.6.1-91.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.78.0-3.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-80.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-10.Final_redhat_2.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-22.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-29.redhat_1.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-41.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-68.GA.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.37-80.jbcs.el7RHSA-2022:1389
Red Hatjboss_core_services:1::el7jbcs-httpd24-nghttp2, jbcs-httpd24-nghttp2-devel, jbcs-httpd24-nghttp2-debuginfo0:1.39.2-41.jbcs.el7RHSA-2022:1389
16 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morelibxml2, python-libxml22.9.4-46.43.1SUSE-SU-2021:1658-1
SUSELinux Enterprise Micro 5.0libxml22.9.7-3.34.1SUSE-SU-2021:1654-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3libxml2, python-libxml2-python2.9.7-3.34.1SUSE-SU-2021:1654-1
SUSELinux Enterprise Module for Python 2 15 SP2, Linux Enterprise Module for Python 2 15 SP3python-libxml2-python2.9.7-3.34.1SUSE-SU-2021:1654-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSlibxml2, libxml2-python2.7.6-0.77.36.1SUSE-SU-2021:14729-1
SUSELinux Enterprise Software Development Kit 12 SP5libxml22.9.4-46.43.1SUSE-SU-2021:1658-1
openSUSELeap 15.2libxml2, python-libxml2-python2.9.7-lp152.10.12.1openSUSE-SU-2021:0764-1
openSUSETumbleweedlibxml22.9.12-1.2openSUSE-SU-2024:11016-1
openSUSETumbleweedruby3.2-rubygem-nokogiri1.13.9-1.7openSUSE-SU-2024:13165-1
openSUSETumbleweedrubygem-nokogiri1.13.3-1.1openSUSE-SU-2024:11912-1
openSUSETumbleweedrubygem-nokogiri1.15.5-1.5openSUSE-SU-2024:14174-1
openSUSETumbleweedrubygem-nokogiri1.18.2-1.1openSUSE-SU-2025:14697-1
openSUSETumbleweedrubygem-nokogiri1.18.9-1.4openSUSE-SU-2026:10356-1
AlmaLinux8libxml2-devel2.9.7-9.el8_4.2ALSA-2021:2569
Rocky Linux8libxml20:2.9.7-9.el8_4.2RLSA-2021:2569
Alpinev3.10libxml22.9.9-r5ALPINE-CVE-2021-3537
Alpinev3.11libxml22.9.10-r5ALPINE-CVE-2021-3537
Alpinev3.12libxml22.9.10-r6ALPINE-CVE-2021-3537
Alpinev3.13libxml22.9.10-r7ALPINE-CVE-2021-3537
Alpinev3.14, v3.15, v3.16 and 8 morelibxml22.9.11-r0ALPINE-CVE-2021-3537

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

For the flaw to be exploitable, the document must be parsed in recovery mode and post validated (e.g.: when used in the `xmlling` tool, both `-recover` and `-postvalid` options must be used for the flaw to be exploitable)

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-apr-util-0:1.6.1-91.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:7.78.0-3.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-80.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-10.Final_redhat_2.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-22.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-29.redhat_1.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-41.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-68.GA.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-nghttp2-0:1.39.2-41.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1g-11.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-chil-0:1.0.0-11.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-pkcs11-0:0.4.10-26.el8jbcsFixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-apr-util-0:1.6.1-91.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-curl-0:7.78.0-3.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-httpd-0:2.4.37-80.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-mod_cluster-native-0:1.3.16-10.Final_redhat_2.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
JBoss Core Services on RHEL 7jbcs-httpd24-mod_http2-0:1.15.7-22.jbcs.el7Fixed 2022-04-20RHSA-2022:1389
Red Hat Enterprise Linux 6libxml2Out of support scope
Red Hat Enterprise Linux 7libxml2Out of support scope
Red Hat Enterprise Linux 9libxml2Not affected
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3537.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-21-336-06Hitachi Energy APM Edge2021-12-02EnergyAPM Edge: Version 3.0, APM Edge: Version 2.0, APM Edge: Version 1.0none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON