CVE-2020-25666: Debian Linux
Low severity, CVSS 3.3. EPSS: 1.2% chance of exploitation in the next 30 days.
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.
Affected products
- Debian Debian Linux: version 9.0 only
- ImageMagick ImageMagick: before 6.9.10-69 (fixed in 6.9.10-69); from 7.0.0-0, before 7.0.9-0 (fixed in 7.0.9-0)
Published 2020-12-08. Last modified 2026-06-17.