CVE-2020-25666
mediumpriority · track · 13EPSS 0.012 · 67 %ileEURUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.1–5.3
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (16)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://bugzilla.redhat.com/show_bug.cgi?id=1891612cnnvd
- https://github.com/ImageMagick/ImageMagick/commit/94691f00839dbdf43edb1508af945ab19b388573Patchcnnvd
- https://lists.debian.org/debian-lts-announce/2021/03/msg00030.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2023/03/msg00008.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-25666cnnvd
- https://vigilance.fr/vulnerability/ImageMagick-four-vulnerabilities-34357cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.0205/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.0276/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan