{"id":"CVE-2021-40145","aliases":["CVE-2021-40145"],"related":[],"kind":"vulnerability","state":"published","title":"gdImageGd2Ptr in gdgd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"** EN DISPUTA ** la función gdImageGd2Ptr en el archivo gd_gd2.c en GD Graphics Library (también se conoce como LibGD) hasta la versión 2.3.2, presenta una doble liberación. NOTA: la posición del proveedor es \"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.\"","source":"nvd"}],"published":"2021-08-26T00:34:17.000Z","modified":"2026-06-17T04:06:35.353Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.3.2"}],"vendor":"libgd","product":"libgd","cpe":"cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgd/libgd/pull/713","tags":["issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgd/libgd/issues/700","tags":["exploit","issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-40145","url":"https://www.cve.org/CVERecord?id=CVE-2021-40145","licence":"CVE Terms of Use","modified":"2024-08-04T02:27:31.617Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-40145","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40145","licence":"Public domain","modified":"2026-06-17T04:06:35.353Z"}],"updatedAt":"2026-11-25T22:58:03.509Z","epss":{"score":0.02134,"percentile":0.82695,"date":"2026-11-30T12:00:22.000Z"}}