CVE-2020-25674

Summary

CVECVE-2020-25674
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-12-08 22:15:00 UTC
Updated2023-11-07 03:20:00 UTC
DescriptionWriteOnePNGImage() 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.

Risk And Classification

Problem Types: CWE-122

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Imagemagick Imagemagick All All All All
Application Imagemagick Imagemagick All All All All

References

ReferenceSourceLinkTags
1891928 – (CVE-2020-25674) CVE-2020-25674 ImageMagick: heap-based buffer overflow in WriteOnePNGImage in coders/png.c MISC bugzilla.redhat.com Exploit, Issue Tracking, Patch, Third Party Advisory
[SECURITY] [DLA 2523-1] imagemagick security update MLIST lists.debian.org Mailing List, Third Party Advisory
[SECURITY] [DLA 3357-1] imagemagick security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 181625 Debian Security Update for imagemagick (DLA 3357-1)
  • 198406 Ubuntu Security Notification for ImageMagick vulnerabilities (USN-4988-1)
  • 671560 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1536)
  • 671612 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1570)
  • 671705 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1731)
  • 750398 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0148-1)
  • 750404 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0136-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report