# CVE-2020-25674

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-12-08 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-25674, DEBIAN-CVE-2020-25674
- Record: https://cvemate.com/vulnerability/CVE-2020-25674 · JSON: https://cvemate.com/vulnerability/CVE-2020-25674/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.028%, percentile 64.772%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian imagemagick (Debian): \< 8:6.9.11.24+dfsg-1
- ubuntu imagemagick (Ubuntu): \< 8:6.8.9.9-7ubuntu5.16+esm2 \| \< 8:6.9.7.4+dfsg-16ubuntu6.11 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.4
- debian debian\_linux: 9.0
- imagemagick imagemagick: \< 6.9.10-68 \| ≥ 7.0.0-0, \< 7.0.8-68

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1891928>
- <https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html>
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html>
- <https://ubuntu.com/security/CVE-2020-25674>
- <https://ubuntu.com/security/notices/USN-4988-1>
- <https://ubuntu.com/security/notices/USN-5335-1>
- <https://www.cve.org/CVERecord?id=CVE-2020-25674>
- <https://ubuntu.com/security/notices/USN-7068-1>
- <https://security-tracker.debian.org/tracker/CVE-2020-25674>

---

Data as of 2026-12-05T04:39:16.004Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
