A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero in sRGBTransformImage() in the MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker processed by an application using ImageMagick. The highest threat from this vulnerability is to system availability.
{
"license": "CC-BY-4.0",
"sources": [
{
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20311",
"database_specific": {
"status": "Modified"
},
"modified": "2026-06-17T03:33:39.100Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-20311",
"imported": "2026-07-30T14:08:42.968Z",
"id": "CVE-2021-20311",
"published": "2021-05-11T23:15:08.810Z"
}
]
}