Ojuju Advisory
DEBIAN-CVE-2021-40145 Also known as: CVE-2021-40145
Summary The record has no summary.
Details 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.
Severity High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Dates Published 2021-08-26 01:15 UTC Modified 2026-10-23 18:03 UTC
Affected packages and fixes libgd2
Debian packages (deb) · Debian 12
Affected introduced 0, fixed 2.3.3-1 (ecosystem)
Fixed versions 2.3.3-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
libgd2
Debian packages (deb) · Debian 13
Affected introduced 0, fixed 2.3.3-1 (ecosystem)
Fixed versions 2.3.3-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
libgd2
Debian packages (deb) · Debian 14
Affected introduced 0, fixed 2.3.3-1 (ecosystem)
Fixed versions 2.3.3-1
Fix This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check →