cve.bz

CVE-2021-3516 Use After Free

7.8 highExploit referenceEPSS 2.0%Fix available

High (7.8). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
There's a flaw in libxml2's xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by xmllint could trigger a use-after-free. The greatest impact of this flaw is to confidentiality, integrity, and availability.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
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-3516 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3516?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3516?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-3516 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-3516

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-3516](https://cve.bz/cve/badge/CVE-2021-3516.svg)](https://cve.bz/cve/CVE-2021-3516)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:xmllintbefore 2.9.11
debian:debian_linux9.0
fedoraproject:fedora33
fedoraproject:fedora34
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
oracle:zfs_storage_appliance_kit8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxml22.9.4+dfsg1-2.2+deb9u4DLA-2653-1
Debian12, 13, 14libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3516
Ubuntu18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.4UBUNTU-CVE-2021-3516 USN-4991-1
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-3516 USN-4991-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm2UBUNTU-CVE-2021-3516 USN-4991-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm1UBUNTU-CVE-2021-3516 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.31.1SUSE-SU-2021:1523-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.31.1SUSE-SU-2021:1523-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.31.1SUSE-SU-2021:1523-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 Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5libxml2, python-libxml22.9.4-46.40.1SUSE-SU-2021:1524-1
SUSELinux Enterprise Software Development Kit 12 SP5libxml22.9.4-46.40.1SUSE-SU-2021:1524-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
openSUSELeap 15.2libxml2, python-libxml2-python2.9.7-lp152.10.9.1openSUSE-SU-2021:0692-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

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The only known exploitation path of this flaw is via the xmllint tool.

This flaw is out of support scope for Red Hat Enterprise Linux 6 and 7. To learn more about Red Hat Enterprise Linux support life cycles, please see https://access.redhat.com/support/policy/updates/errata .

Red Hat's mitigation

This flaw can be mitigated by not using xmllint with the --html and --push options together.

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
Red Hat Enterprise Linux 6compat-expat1Out of support scope
Red Hat Enterprise Linux 6libxml2Out of support scope
Red Hat Enterprise Linux 7libxml2Out of support scope
Red Hat Enterprise Linux 9libxml2Not affected
23 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-3516.

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