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 libmagickwand-7_q16hdri6Upgrade imagemagick-extraUpgrade libmagick-6_q16-3Upgrade imagemagick-devel-32bitUpgrade libmagickwand-7_q16hdri6-32bitUpgrade libmagickcore-6_q16-1-32bitUpgrade libmagick-devel-32bitUpgrade libmagickwand-6_q16-1Upgrade imagemagick-docUpgrade imagemagick-config-7-upstreamUpgrade libmagick-develUpgrade imagemagickUpgrade imagemagick-develUpgrade imagemagick-config-7-suseUpgrade libmagickcore-6_q16-1Upgrade perl-perlmagickUpgrade libmagick-7_q16hdri4Upgrade libmagick-7_q16hdri4-32bitUpgrade imagemagick-config-6-upstreamUpgrade libmagickcore-7_q16hdri6-32bitUpgrade imagemagick-config-6-suse | Jan 19, 2021 | Dec 8, 2020 |
| Ubuntu | — | Upgrade perlmagick (Ubuntu Pro)Upgrade libmagick++-6.q16-5v5 (Ubuntu Pro)Upgrade libmagickcore5 (Ubuntu Pro)Upgrade libimage-magick-q16-perl (Ubuntu Pro)Upgrade libmagickcore-6.q16-3-extraUpgrade imagemagick-6.q16 (Ubuntu Pro)Upgrade libmagick++5 (Ubuntu Pro)Upgrade libmagickcore-6-headers (Ubuntu Pro)Upgrade libmagick++-dev (Ubuntu Pro)Upgrade libmagickwand5 (Ubuntu Pro)Upgrade imagemagickUpgrade libmagickcore-6.q16-dev (Ubuntu Pro)Upgrade libmagick++-6.q16-8Upgrade libmagickcore5-extra (Ubuntu Pro)Upgrade libmagickcore-6.q16-6-extraUpgrade libmagickcore-dev (Ubuntu Pro)Upgrade libimage-magick-perl (Ubuntu Pro)Upgrade libmagickwand-6.q16-dev (Ubuntu Pro)Upgrade libmagickwand-6.q16-2 (Ubuntu Pro)Upgrade libmagickcore-6.q16-2-extra (Ubuntu Pro)Upgrade libmagickcore-6-arch-config (Ubuntu Pro)Upgrade imagemagick-6.q16Upgrade libmagickcore-6.q16-3Upgrade libmagickcore-6.q16-6Upgrade libmagick++-6.q16-7Upgrade imagemagick (Ubuntu Pro)Upgrade libmagick++-6.q16-dev (Ubuntu Pro)Upgrade libmagickwand-dev (Ubuntu Pro)Upgrade libmagickcore-6.q16-2 (Ubuntu Pro)Upgrade imagemagick-common (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