cve.bz

CVE-2021-3517 Out-of-bounds Write

8.6 highEPSS 17%Fix available

High (8.6). EPSS 17% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.11.4.

On this page
There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could trigger an out-of-bounds read. The most likely impact of this flaw is to application availability, with some potential impact to confidentiality and integrity if an attacker is able to use memory information to further exploit the application.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS
17% (unchanged from 17% a week ago; 17% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-125 Out-of-bounds Read
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-3517 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3517?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3517?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-3517 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-3517

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

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:libxml2before 2.9.11
redhat:enterprise_linux8.0
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0
netapp:e-series_santricity_os_controllerfrom 11.0.0 through 11.70.1
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: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
oracle:zfs_storage_appliance_kit8.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jw9f-hh49-cvp9RubyGemsnokogiri<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-3517
Ubuntu18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.4UBUNTU-CVE-2021-3517 USN-4991-1
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.1UBUNTU-CVE-2021-3517 USN-4991-1
UbuntuPro:14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.13+esm2UBUNTU-CVE-2021-3517 USN-4991-1
UbuntuPro:16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.7+esm1UBUNTU-CVE-2021-3517 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
Alpinev3.10libxml22.9.9-r5ALPINE-CVE-2021-3517
Alpinev3.11libxml22.9.10-r5ALPINE-CVE-2021-3517
Alpinev3.12libxml22.9.10-r6ALPINE-CVE-2021-3517
Alpinev3.13libxml22.9.10-r7ALPINE-CVE-2021-3517
Alpinev3.14, v3.15, v3.16 and 7 moreqt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3517
Alpinev3.14, v3.15, v3.16 and 8 morelibxml22.9.11-r0ALPINE-CVE-2021-3517

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

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 .

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-3517.

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
ICSA-21-336-08Hitachi Energy RTU500 series2021-12-02EnergyRTU500 series CMU Firmware: Version 12.2.*, RTU500 series CMU Firmware: Version 13.1.*, RTU500 series CMU Firmware: Version 13.0.* and 6 morenone 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.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON