CVE-2020-25674 Details
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 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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1891928 | CVE | ExploitIssue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html | CVE | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html | CVE | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1891928 | [email protected] | ExploitIssue TrackingPatchThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html | [email protected] | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| imagemagick imagemagick | < 6.9.10-68 >= 7.0.0-0, < 7.0.8-68 |
CPE
Remediation
| |
| debian debian linux | 9.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Mar 11, 2023 | CVE Modified | [email protected] |
| Jun 2, 2021 | Reanalysis | [email protected] |
| Mar 4, 2021 | Modified Analysis | [email protected] |
| Jan 12, 2021 | CVE Modified | [email protected] |
| Dec 10, 2020 | Initial Analysis | [email protected] |