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 Details
- CVSS 3.1 Base Score: 3.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade imagemagick | Mar 25, 2021 | Dec 8, 2020 |
| Huawei Euleros 2_0_sp3 | — | — | May 25, 2022 | Dec 8, 2020 |
| Huawei Euleros 2_0_sp5 | — | — | Apr 26, 2022 | Dec 8, 2020 |
| Huawei Euleros 2_0_sp8 | — | — | Apr 26, 2022 | Dec 8, 2020 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Dec 8, 2020 |
| Suse | — | Upgrade libMagick++-develUpgrade ImageMagickUpgrade imagemagick-devel-32bitUpgrade libMagickWand-6_Q16-1Upgrade imagemagick-config-7-upstreamUpgrade perl-PerlMagickUpgrade libmagickwand-7_q16hdri6-32bitUpgrade ImageMagick-extraUpgrade libMagickCore-7_Q16HDRI6Upgrade ImageMagick-config-6-upstreamUpgrade ImageMagick-docUpgrade ImageMagick-config-6-SUSEUpgrade libMagick++-7_Q16HDRI4Upgrade libMagick++-6_Q16-3Upgrade libMagickWand-7_Q16HDRI6Upgrade libmagickcore-7_q16hdri6-32bitUpgrade libMagickCore1Upgrade ImageMagick-config-7-SUSEUpgrade libmagick-7_q16hdri4-32bitUpgrade libMagickCore1-32bitUpgrade libmagick-devel-32bitUpgrade ImageMagick-develUpgrade libMagickCore-6_Q16-1-32bitUpgrade libMagickCore-6_Q16-1 | Jan 16, 2021 | Dec 8, 2020 |
| Ubuntu | — | Upgrade libmagickcore-dev (Ubuntu Pro)Upgrade libmagickcore-6-headers (Ubuntu Pro)Upgrade libimage-magick-perl (Ubuntu Pro)Upgrade libmagickcore-6.q16-3-extraUpgrade imagemagick-6.q16 (Ubuntu Pro)Upgrade libmagickcore5-extra (Ubuntu Pro)Upgrade libmagick++-6.q16-5v5 (Ubuntu Pro)Upgrade libmagickcore-6.q16-6-extraUpgrade imagemagickUpgrade libmagickwand5 (Ubuntu Pro)Upgrade libmagickcore-6.q16-dev (Ubuntu Pro)Upgrade libmagick++5 (Ubuntu Pro)Upgrade libmagick++-dev (Ubuntu Pro)Upgrade perlmagick (Ubuntu Pro)Upgrade libmagickcore5 (Ubuntu Pro)Upgrade libmagickwand-dev (Ubuntu Pro)Upgrade libimage-magick-q16-perl (Ubuntu Pro)Upgrade imagemagick (Ubuntu Pro)Upgrade libmagickcore-6.q16-3Upgrade libmagickcore-6.q16-2-extra (Ubuntu Pro)Upgrade imagemagick-6.q16Upgrade libmagickcore-6.q16-2 (Ubuntu Pro)Upgrade libmagick++-6.q16-8Upgrade libmagickwand-6.q16-2 (Ubuntu Pro)Upgrade libmagickcore-6.q16-6Upgrade libmagick++-6.q16-7 | Jun 16, 2021 | Dec 8, 2020 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub