Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-25664
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-25664
Complete source record
{
"id": "50ffd1264ce4987ff98e9bd1b91042d272682a2f90d880cf50067a7853a482a1",
"url": "https://osv.dev/vulnerability/CVE-2020-25664",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-25664",
"summary": "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.",
"evidence": "osv:CVE-2020-25664",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-25664",
"aliases": [
"CVE-2020-25664"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick",
"type": "GIT",
"events": [
{
"introduced": "ca7b8e7e8bfa64b38ed2e704145d15ddcebdef05"
},
{
"fixed": "cdfd76effab52bb2489feb6518178b66324dec11"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.8"
},
{
"fixed": "7.0.8-68"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"7.0.8-67",
"7.0.8-66",
"7.0.8-65",
"7.0.8-64",
"7.0.8-63",
"7.0.8-62",
"7.0.8-61",
"7.0.8-60",
"7.0.8-59",
"7.0.8-58",
"7.0.8-57",
"7.0.8-56",
"7.0.8-55",
"7.0.8-54",
"7.0.8-53",
"7.0.8-52",
"7.0.8-51",
"7.0.8-50",
"7.0.8-49",
"7.0.8-48",
"7.0.8-47",
"7.0.8-46",
"7.0.8-45",
"7.0.8-44",
"7.0.8-43",
"7.0.8-42",
"7.0.8-41",
"7.0.8-40",
"7.0.8-39",
"7.0.8-38",
"7.0.8-37",
"7.0.8-36",
"7.0.8-35",
"7.0.8-34",
"7.0.8-33",
"7.0.8-32",
"7.0.8-31",
"7.0.8-30",
"7.0.8-29",
"7.0.8-28",
"7.0.8-27",
"7.0.8-26",
"7.0.8-25",
"7.0.8-24",
"7.0.8-23",
"7.0.8-22",
"7.0.8-21",
"7.0.8-20",
"7.0.8-19",
"7.0.8-18",
"7.0.8-17",
"7.0.8-16",
"7.0.8-15",
"7.0.8-14",
"7.0.8-13",
"7.0.8-12",
"7.0.8-11",
"7.0.8-10",
"7.0.8-9",
"7.0.8-8",
"7.0.8-7",
"7.0.8-6",
"7.0.8-5",
"7.0.8-4",
"7.0.8-3",
"7.0.8-2",
"7.0.8-1",
"7.0.8-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-25664.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick6",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "bcb26c8197b73657830415bf977fb1b066e88174"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.9.10-68"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"6.9.10-67",
"6.9.10-66",
"6.9.10-65",
"6.9.10-64",
"6.9.10-63",
"6.9.10-62",
"6.9.10-61",
"6.9.10-60",
"6.9.10-59",
"6.9.10-58",
"6.9.10-57",
"6.9.10-56",
"6.9.10-55",
"6.9.10-54",
"6.9.10-53",
"6.9.10-52",
"6.9.10-51",
"6.9.10-50",
"6.9.10-49",
"6.9.10-48",
"6.9.10-47",
"6.9.10-46",
"6.9.10-45",
"6.9.10-44",
"6.9.10-43",
"6.9.10-42",
"6.9.10-41",
"6.9.10-40",
"6.9.10-39",
"6.9.10-38",
"6.9.10-37",
"6.9.10-36",
"6.9.10-35",
"6.9.10-34",
"6.9.10-33",
"6.9.10-32",
"6.9.10-31",
"6.9.10-30",
"6.9.10-29",
"6.9.10-28",
"6.9.10-27",
"6.9.10-26",
"6.9.10-25",
"6.9.10-24",
"6.9.10-23",
"6.9.10-22",
"6.9.10-21",
"6.9.10-20",
"6.9.10-19",
"6.9.10-18",
"6.9.10-17",
"6.9.10-16",
"6.9.10-15",
"6.9.10-14",
"6.9.10-13",
"6.9.10-12",
"6.9.10-11",
"6.9.10-10",
"6.9.10-9",
"6.9.10-8",
"6.9.10-7",
"6.9.10-6",
"6.9.10-5",
"6.9.10-4",
"6.9.10-3",
"6.9.10-2",
"6.9.10-1",
"6.9.10-0",
"6.9.9-51",
"6.9.9-50",
"6.9.9-49",
"6.9.9-48",
"6.9.9-47",
"6.9.9-46",
"6.9.9-45",
"6.9.9-44",
"6.9.9-43",
"6.9.9-42",
"6.9.9-41",
"6.9.9-40",
"6.9.9-39",
"6.9.9-38",
"6.9.9-37",
"6.9.9-36",
"6.9.9-35",
"6.9.9-34",
"6.9.9-33",
"6.9.9-32",
"6.9.9-31",
"6.9.9-30",
"6.9.9-29",
"6.9.9-28",
"6.9.9-27",
"6.9.9-26",
"6.9.9-25",
"6.9.9-24",
"6.9.9-23",
"6.9.9-22",
"6.9.9-21",
"6.9.9-20",
"6.9.9-19",
"6.9.9-18",
"6.9.9-17",
"6.9.9-15",
"6.9.9-14",
"6.9.9-13",
"6.9.9-12",
"6.9.9-11",
"6.9.9-10",
"6.9.9-9",
"6.9.9-8",
"6.9.9-7",
"6.9.9-6",
"6.9.9-5",
"6.9.9-4",
"6.9.9-3",
"6.9.9-2",
"6.9.9-1",
"6.9.9-0",
"6.9.8-10",
"6.9.8-9",
"6.9.8-8",
"6.9.8-7",
"6.9.8-6",
"6.9.8-5",
"6.9.8-4",
"6.9.8-3",
"6.9.8-2",
"6.9.8-1",
"6.9.8-0",
"6.9.7-10",
"6.9.7-9",
"6.9.7-8",
"6.9.7-7",
"6.9.7-6",
"6.9.7-5",
"6.9.7-4",
"6.9.7-3",
"6.9.7-2",
"6.9.7-1",
"6.9.7-0",
"6.9.6-8",
"6.9.6-7",
"6.9.6-6",
"6.9.6-5",
"6.9.6-4",
"6.9.6-3",
"6.9.6-2",
"6.9.6-1",
"6.9.6-0",
"6.9.5-10",
"6.9.5-9",
"6.9.5-8",
"6.9.5-7",
"6.9.5-6",
"6.9.5-5",
"6.9.5-4",
"6.9.5-3",
"6.9.5-2",
"6.9.5-1",
"6.9.5-0",
"6.9.4-10",
"6.9.4-9",
"6.9.4-8",
"6.9.4-7",
"6.9.4-6",
"6.9.4-5",
"6.9.4-4",
"6.9.4-3",
"6.9.4-2",
"6.9.4-1",
"6.9.4-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-25664.json"
}
}
],
"modified": "2026-10-24T10:30:44.172156112Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z3J6D7POCQYQKNVRDYLTTPM5SQC3WVTR/",
"https://bugzilla.redhat.com/show_bug.cgi?id=1891605"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*"
],
"vendor_product": "imagemagick:imagemagick",
"extracted_events": [
{
"range": [
{
"fixed": "6.9.10-68"
},
{
"introduced": "7.0.8"
},
{
"fixed": "7.0.8-68"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "34"
},
{
"last_affected": "34"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-25664",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435800,
"published_at": "2020-12-08T21:15:12.497+00:00"
}