CVE-2020-25674
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2020-25674 affects ImageMagick versions prior to 7.0.8-68, specifically in the WriteOnePNGImage() function from coders/png.c (the PNG coder). The vulnerability was discovered by Suhwan Song from Seoul National University (Red Hat Bug).

Technical details

The vulnerability stems from 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 (Red Hat Bug). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 MEDIUM (Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) (NVD).

Impact

This vulnerability could impact application availability when a specially crafted input file is processed by ImageMagick (Red Hat Bug).

Exploitability

The vulnerability requires a user or automated system to process a specially crafted PNG image file to trigger the heap-buffer-overflow condition (Debian LTS).

Mitigation and workarounds

The vulnerability has been fixed in ImageMagick version 7.0.8-68. Various Linux distributions have also released security updates to address this vulnerability, including Debian 9 (Stretch) with version 8:6.9.7.4+dfsg-11+deb9u11 and Ubuntu with corresponding package updates (Debian LTS, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86420MEDIUM6.3
  • ImageMagick logoImageMagick
  • ImageMagick
NoNoSep 07, 2026
CVE-2026-64685MEDIUM5.3
  • ImageMagick logoImageMagick
  • ImageMagick-config-7-upstream-secure
NoYesJul 30, 2026
CVE-2026-86425MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick
NoNoSep 07, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • ImageMagick
NoYesJul 30, 2026
CVE-2026-86424LOW2
  • ImageMagick logoImageMagick
  • ImageMagick
NoNoSep 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management