WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value with a call to MagickMin() to ensure the proper value is used. This could impact application availability when a specially crafted input file is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade imagemagick | Jan 14, 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 libmagickcore-7_q16hdri6Upgrade libmagick-6_q16-3Upgrade libmagickcore-6_q16-1-32bitUpgrade libmagickwand-7_q16hdri6Upgrade libmagick-devel-32bitUpgrade libmagickwand-6_q16-1Upgrade imagemagick-extraUpgrade libmagickwand-7_q16hdri6-32bitUpgrade imagemagick-devel-32bitUpgrade libmagick-7_q16hdri4-32bitUpgrade imagemagick-config-6-upstreamUpgrade imagemagickUpgrade libmagick-7_q16hdri4Upgrade perl-perlmagickUpgrade libmagickcore-6_q16-1Upgrade imagemagick-config-6-suseUpgrade libmagick-develUpgrade libmagickcore-7_q16hdri6-32bitUpgrade imagemagick-config-7-upstreamUpgrade imagemagick-config-7-suseUpgrade imagemagick-docUpgrade imagemagick-devel | Jan 19, 2021 | Dec 8, 2020 |
| Ubuntu | — | Upgrade libmagick++-6.q16-8Upgrade imagemagick-6.q16 (Ubuntu Pro)Upgrade imagemagickUpgrade libmagickwand5 (Ubuntu Pro)Upgrade libmagick++5 (Ubuntu Pro)Upgrade libimage-magick-q16-perl (Ubuntu Pro)Upgrade libmagickcore-6.q16-dev (Ubuntu Pro)Upgrade libmagick++-6.q16-5v5 (Ubuntu Pro)Upgrade perlmagick (Ubuntu Pro)Upgrade libmagickcore5 (Ubuntu Pro)Upgrade libmagickcore-6.q16-3-extraUpgrade libmagickcore-6-headers (Ubuntu Pro)Upgrade libmagickwand-6.q16-dev (Ubuntu Pro)Upgrade libmagick++-dev (Ubuntu Pro)Upgrade libmagickcore-6.q16-6-extraUpgrade libmagickcore5-extra (Ubuntu Pro)Upgrade libimage-magick-perl (Ubuntu Pro)Upgrade libmagickcore-dev (Ubuntu Pro)Upgrade libmagick++-6.q16-7Upgrade libmagick++-6.q16-dev (Ubuntu Pro)Upgrade libmagickcore-6.q16-2 (Ubuntu Pro)Upgrade libmagickcore-6.q16-3Upgrade libmagickcore-6-arch-config (Ubuntu Pro)Upgrade imagemagick-common (Ubuntu Pro)Upgrade libmagickwand-dev (Ubuntu Pro)Upgrade imagemagick (Ubuntu Pro)Upgrade libmagickcore-6.q16-2-extra (Ubuntu Pro)Upgrade libmagickcore-6.q16-6Upgrade imagemagick-6.q16Upgrade libmagickwand-6.q16-2 (Ubuntu Pro) | 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