{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-25674","id":"CVE-2020-25674","title":"WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an…","description":"WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value w","descriptionLong":"WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value with a call to MagickMin() to ensure the proper value is used. This could impact application availability when a specially crafted input file is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.","published":"2020-12-08T00:00:00.000Z","updated":"2026-10-24T10:30:36.215543630Z","reserved":"2020-09-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["ImageMagick"],"affectedProducts":[{"vendor":"n/a","product":"ImageMagick","defaultStatus":null,"versions":[{"version":"prior to 7.0.8-68","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-122"],"aliases":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1891928","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html","tags":["mailing-list","x_transferred","web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01028,"epssPercentile":0.64352,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-25674","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25674","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-25674","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-25674","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}