The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.
{
"sources": [
{
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-40812",
"id": "CVE-2021-40812",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-40812",
"imported": "2026-07-17T21:43:09.961Z",
"modified": "2026-06-17T04:07:28.177Z",
"published": "2021-09-08T21:15:14.083Z",
"database_specific": {
"status": "Modified"
}
}
],
"license": "CC-BY-4.0"
}