Vulnerability · Published Aug 26, 2021 · Assigned by mitre

CVE-2021-40145

High 7.5

In plain English

A high-severity security flaw in the gd package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor's position is "The GD2 image format is a proprietary image format of libgd. It has to be regarded as being obsolete, and should only be used for development and testing purposes.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20gd2.3.0-r1ALPINE-CVE-2021-40145
Alpine:v3.21gd2.3.0-r1ALPINE-CVE-2021-40145
Alpine:v3.22gd2.3.0-r1ALPINE-CVE-2021-40145
Alpine:v3.23gd2.3.0-r1ALPINE-CVE-2021-40145
Alpine:v3.24gd2.3.0-r1ALPINE-CVE-2021-40145
Debian:12libgd22.3.3-1DEBIAN-CVE-2021-40145
Debian:13libgd22.3.3-1DEBIAN-CVE-2021-40145
Debian:14libgd22.3.3-1DEBIAN-CVE-2021-40145
Ubuntu:22.04:LTSlibgd22.3.0-2ubuntu1UBUNTU-CVE-2021-40145

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References