CVE-2021-40145

Summary

CVECVE-2021-40145
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-08-26 01:15:00 UTC
Updated2023-11-07 03:38:00 UTC
Description** DISPUTED ** 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."

Risk And Classification

Problem Types: CWE-415

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libgd Libgd All All All All

References

ReferenceSourceLinkTags
gdImageGd2Ptr memory leak by meweez · Pull Request #713 · libgd/libgd · GitHub MISC github.com
gdImageGdPtr memory leak · Issue #700 · libgd/libgd · GitHub MISC github.com
Merge pull request #713 from me22bee/_gdImageGd2 · libgd/libgd@c5fd25c · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 182137 Debian Security Update for libgd2 (CVE-2021-40145)
  • 198489 Ubuntu Security Notification for GD library Vulnerabilities (USN-5068-1)
  • 296061 Oracle Solaris 11.4 Support Repository Update (SRU) 42.113.1 Missing (CPUJAN2022)
  • 354869 Amazon Linux Security Advisory for gd : ALAS-2023-1721
  • 355098 Amazon Linux Security Advisory for gd : ALAS2-2023-2044
  • 500198 Alpine Linux Security Update for gd
  • 503940 Alpine Linux Security Update for gd
  • 670819 EulerOS Security Update for gd (EulerOS-SA-2021-2708)
  • 670952 EulerOS Security Update for gd (EulerOS-SA-2021-2659)
  • 671020 EulerOS Security Update for gd (EulerOS-SA-2021-2683)
  • 671022 EulerOS Security Update for gd (EulerOS-SA-2021-2630)
  • 671258 EulerOS Security Update for gd (EulerOS-SA-2022-1163)
  • 900385 Common Base Linux Mariner (CBL-Mariner) Security Update for gd (6269)
  • 901126 Common Base Linux Mariner (CBL-Mariner) Security Update for gd (6432-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report