# CVE-2020-25666

- Priority: **Routine**
- Reason: Not severe (CVSS 3.3, 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-25666, DEBIAN-CVE-2020-25666
- Record: https://cvemate.com/vulnerability/CVE-2020-25666 · JSON: https://cvemate.com/vulnerability/CVE-2020-25666/json

## Description

```text
There are 4 places in HistogramCompare() in MagickCore/histogram.c where an integer overflow is possible during simple math calculations. This occurs in the rgb values and `count` value for a color. The patch uses casts to `ssize_t` type for these calculations, instead of `int`. This flaw could impact application reliability in the event that ImageMagick processes a crafted input file. This flaw affects ImageMagick versions prior to 7.0.9-0.
```

## Signals

- CVSS: 4.3 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:N/I:N/A:P
- EPSS: 1.177%, percentile 68.629%, 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+esm11 \| \< 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-69 \| ≥ 7.0.0-0, \< 7.0.9-0

## References

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

---

Data as of 2026-12-05T04:21:09.078Z. 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
