In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds write later when PopShortPixel() from MagickCore/quantum-private.h is called. The patch fixes the calls by adding 256 to rowbytes. An attacker who is able to supply a specially crafted image could affect availability with a low impact to data integrity. This flaw affects ImageMagick versions prior to 6.9.10-68 and 7.0.8-68.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Modified"
},
"published": "2020-12-08T21:15:12.497Z",
"id": "CVE-2020-25664",
"modified": "2026-06-17T03:07:05.160Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-25664",
"imported": "2026-07-30T14:08:42.164Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2020-25664"
}
]
}