CVE-2021-40145

HIGH

libgd < 2.3.2 - Double Free in gdImageGd2Ptr

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/libgd/libgd/pull/713
Exploit, Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/libgd/libgd/issues/700

Scores

CVSS v3 7.5
EPSS 0.0198
EPSS Percentile 78.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-415
Status published
Products (1)
libgd/libgd < 2.3.2
Published Aug 26, 2021
Tracked Since Feb 18, 2026