All vulnerabilities

Servers and applications

CVE-2020-25674

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…

Severity
Medium 5.5
Published
8 Dec 2020
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
6.9.10-68, 7.0.8-68
Sources
NVD

Affected software

SoftwareAffected versions
ImageMagickServers and applications · cpe:a:imagemagick:imagemagick
  • Every version before 6.9.10-68
  • From 7.0.0-0 before 7.0.8-68

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2020-25674
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2020-25674