In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead to undefined behavior. This flaw can be triggered by a crafted input file processed by ImageMagick and could impact application availability. The patch uses multiplication in addition to the function PerceptibleReciprocal() in order to prevent such divide-by-zero conditions. This flaw affects ImageMagick versions prior to 7.0.9-0.
{
"license": "CC-BY-4.0",
"sources": [
{
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27756",
"database_specific": {
"status": "Modified"
},
"modified": "2026-06-17T03:09:35.123Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2020-27756",
"imported": "2026-07-30T14:08:42.622Z",
"id": "CVE-2020-27756",
"published": "2020-12-08T22:15:18.383Z"
}
]
}