What’s Vulnerable › Vulnerabilities
CVE-2021-40145
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-26 · updated 2026-06-17
- Weakness: CWE-415
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 products
- Libgd: through 2.3.2
References
- https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af
- https://github.com/libgd/libgd/issues/700
- https://github.com/libgd/libgd/pull/713
- https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af
- https://github.com/libgd/libgd/issues/700
- https://github.com/libgd/libgd/pull/713
Get alerted when CVE-2021-40145 or the next vulnerability affects your stack