VDB
CVE-2021-40145
CVE-2021-40145
PUBLISHED
Reported by mitre · Published August 26, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gd | Arch Linux | 2.3.3-1 |
| gd | Amazon Linux | 2.0.35-27.amzn2.0.1 |
| libgd | libgd | 2.3.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| arch | gd | 0 |
| amazon:2 | gd | 0 |
| n/a | n/a | * |
| amazon:2 | gd-progs | 0 |
| alpine | gd | 0, 0 |
| amazon:2 | gd-devel | 0 |
Timeline
- Aug 26, 2021 EPSS Score (30 in total, the first dated here)
- Aug 26, 2021 CVE Published
- Aug 4, 2024 CVE Updated
- Jun 1, 2026 Security Advisory
- Jul 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-40145
vulnetix vdb fixes CVE-2021-40145
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-40145/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart