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.
                
            References
                    | Link | Resource | 
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1891612 | Exploit Issue Tracking Patch Third Party Advisory | 
| https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html | Mailing List Third Party Advisory | 
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html | 
Configurations
                    History
                    No history.
Information
                Published : 2020-12-08 21:15
Updated : 2023-03-11 23:15
NVD link : CVE-2020-25666
Mitre link : CVE-2020-25666
CVE.ORG link : CVE-2020-25666
JSON object : View
Products Affected
                debian
- debian_linux
 
imagemagick
- imagemagick
 
CWE
                
                    
                        
                        CWE-190
                        
            Integer Overflow or Wraparound
