{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-40145","published":"2021-08-26T01:15:11.747000Z","last_modified":"2026-06-17T04:06:35.353000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-415"],"cpes":[{"criteria":"cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*","part":"a","vendor":"libgd","product":"libgd","version_end_including":"2.3.2"}],"cpes_truncated":false,"vendors":["libgd"],"products":["libgd/libgd"],"epss":{"score":0.02134,"percentile":0.8269,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2021-40145/","html_en":"/en/cve/CVE-2021-40145/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40145","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40145"},"untrusted":{"vendor_name":"Libgd","product_name":"Libgd","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/libgd/libgd/issues/700","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/libgd/libgd/pull/713","tags":["Issue Tracking","Third Party Advisory"]}]}}