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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published: 2020-12-08T00:00:00

Updated: 2024-08-04T15:40:36.313Z

Reserved: 2020-09-16T00:00:00

Link: CVE-2020-25666

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2020-12-08T21:15:12.623

Modified: 2023-03-11T23:15:10.807

Link: CVE-2020-25666

cve-icon Redhat

Severity : Low

Publid Date: 2019-10-13T00:00:00Z

Links: CVE-2020-25666 - Bugzilla