GD Graphics Library up to 2.3.2 gd_gd2.c gdImageGd2Ptr double free ⚔ [Disputed]
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability was found in GD Graphics Library up to 2.3.2. It has been rated as critical. This impacts the function gdImageGd2Ptr of the file gd_gd2.c. This manipulation causes double free.
This vulnerability is handled as CVE-2021-40145. There is not any exploit available.
It is still unclear if this vulnerability genuinely exists.
To fix this issue, it is recommended to deploy a patch.
Details
A vulnerability classified as critical was found in GD Graphics Library up to 2.3.2 (Image Processing Software). Affected by this vulnerability is the function gdImageGd2Ptr of the file gd_gd2.c. The manipulation with an unknown input leads to a double free vulnerability. The CWE definition for the vulnerability is CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was released 08/26/2021. It is possible to read the advisory at github.com. This vulnerability is known as CVE-2021-40145. Technical details of the vulnerability are known, but there is no available exploit.
The real existence of this vulnerability is still doubted at the moment. The vulnerability scanner Nessus provides a plugin with the ID 278742 (Debian dla-4411 : libgd-dev - security update), which helps to determine the existence of the flaw in a target environment.
Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com.
The vulnerability is also documented in the vulnerability database at Tenable (278742). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.4
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Double freeCWE: CWE-415 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 278742
Nessus Name: Debian dla-4411 : libgd-dev - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: github.com
Timeline
08/26/2021 🔍08/26/2021 🔍
08/26/2021 🔍
12/16/2025 🔍
Sources
Advisory: github.comStatus: Confirmed
Disputed: 🔍
CVE: CVE-2021-40145 (🔍)
GCVE (CVE): GCVE-0-2021-40145
GCVE (VulDB): GCVE-100-181531
Entry
Created: 08/26/2021 09:08Updated: 12/16/2025 23:56
Changes: 08/26/2021 09:08 (40), 08/29/2021 18:11 (2), 08/04/2024 07:03 (34), 12/16/2025 23:56 (2)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.