CVE-2021-40145

medium
Published — · Modified —
CVSS v3
CVSS v2
VIR risk
5.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-40145

OS impact

OSVersionStatusFixed in
arch archfixed2.3.3-1
debian debianbookwormfixed2.3.3-1
debian debianbullseyefixed2.3.0-2+deb11u1
debian debianforkyfixed2.3.3-1
debian debiansidfixed2.3.3-1
debian debiantrixiefixed2.3.3-1

References

Verify integrity in audit chain (admin only). AS-IS.