Vulnerability · Published May 19, 2021 · Assigned by redhat

CVE-2021-3517

High 8.6

In plain English

A high-severity out-of-bounds write in libxml2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 17.0% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)17.0%top 2.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libxml2-devel2.9.7-9.el8_4.2ALSA-2021:2569
Alpine:v3.20libxml22.9.11-r0ALPINE-CVE-2021-3517
Alpine:v3.21libxml22.9.11-r0ALPINE-CVE-2021-3517
Alpine:v3.22libxml22.9.11-r0ALPINE-CVE-2021-3517
Alpine:v3.23libxml22.9.11-r0ALPINE-CVE-2021-3517
Alpine:v3.24libxml22.9.11-r0ALPINE-CVE-2021-3517
Alpine:v3.20qt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3517
Alpine:v3.21qt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3517
Alpine:v3.22qt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3517
Alpine:v3.23qt5-qtwebengine5.15.3_git20211112-r0ALPINE-CVE-2021-3517
Debian:12libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3517
Debian:13libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3517
Debian:14libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3517
Rocky Linux:8libxml20:2.9.7-9.el8_4.2RLSA-2021:2569
RubyGemsnokogiri1.11.4GHSA-jw9f-hh49-cvp9

Affected products (as reported)

VendorProductVersions
n/a libxml2 libxml2 2.9.11

Weakness: CWE-787, CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

References