CVE-2020-25666 PUBLISHED

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.

EPSS 0.13% · 32.0th percentile

Risk Scores

EPSS Score
0.13%
32.0th percentile

Affected Products

VendorProductVersions
Ubuntu:Pro:16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.3, 8:6.8.9.9-5ubuntu2, 8:6.8.9.9-6
Ubuntu:20.04:LTSimagemagick0, 8:6.9.10.23+dfsg-2.1ubuntu3, 8:6.9.10.23+dfsg-2.1ubuntu8
Ubuntu:18.04:LTSimagemagick8:6.9.7.4+dfsg-16ubuntu6.4, 8:6.9.7.4+dfsg-16ubuntu6.7, 0

Timeline

References

Open in Interactive Console →