An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.
{
"sources": [
{
"imported": "2026-07-30T14:08:43.413Z",
"modified": "2026-06-17T03:33:30Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20224",
"published": "2022-08-25T20:15:08.873Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-20224",
"database_specific": {
"status": "Modified"
},
"id": "CVE-2021-20224"
}
],
"license": "CC-BY-4.0"
}