Vulnerability · Published Sep 8, 2021 · Assigned by mitre
CVE-2021-40812
Medium 6.5
In plain English
A medium-severity out-of-bounds read in the libgd2 package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.7%top 23.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libgd2 | 2.3.3-1 | DEBIAN-CVE-2021-40812 |
| Debian:13 | libgd2 | 2.3.3-1 | DEBIAN-CVE-2021-40812 |
| Debian:14 | libgd2 | 2.3.3-1 | DEBIAN-CVE-2021-40812 |
| Ubuntu:22.04:LTS | libgd2 | 2.3.0-2ubuntu2.3 | USN-7112-1 |
| Ubuntu:22.04:LTS | libgd2 | 2.3.0-2ubuntu2.3 | UBUNTU-CVE-2021-40812 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H