CVE-2021-3517

libxml2: Heap-based buffer overflow in xmlEncodeEntitiesInternal() in entities.c

Published May 19, 2021 CVSS 3.1 · 8.6 High EPSS 17.0% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2653-1 libxml2 security update
EUVD EUVD EUVD-2022-4443 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.
Github GHSA Github GHSA GHSA-jw9f-hh49-cvp9 Nokogiri contains libxml Out-of-bounds Write vulnerability
Ubuntu USN Ubuntu USN USN-4991-1 libxml2 vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-125
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Oct 14, 2026, 9:49 AM
Reserved
Apr 27, 2021, 12:00 AM
Status
Modified
Published
May 19, 2021, 2:15 PM
Modified
Oct 14, 2026, 10:17 AM
Severity
Moderate
Public date
Apr 22, 2021, 12:00 AM