Vulnerability · Published May 18, 2021 · Assigned by redhat

CVE-2021-3518

High 8.8

In plain English

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

Severity (CVSS NVD)8.8High
Exploit odds (30 days)21.9%top 2.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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

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-3518
Alpine:v3.21libxml22.9.11-r0ALPINE-CVE-2021-3518
Alpine:v3.22libxml22.9.11-r0ALPINE-CVE-2021-3518
Alpine:v3.23libxml22.9.11-r0ALPINE-CVE-2021-3518
Alpine:v3.24libxml22.9.11-r0ALPINE-CVE-2021-3518
Debian:12libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3518
Debian:13libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3518
Debian:14libxml22.9.10+dfsg-6.6DEBIAN-CVE-2021-3518
Rocky Linux:8libxml20:2.9.7-9.el8_4.2RLSA-2021:2569
RubyGemsnokogiri1.11.4GHSA-v4f8-2847-rwm7

Affected products (as reported)

VendorProductVersions
n/a libxml2 libxml2 2.9.11

Weakness: CWE-416

References