In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead to undefined behavior. This flaw can be triggered by a crafted input file processed by ImageMagick and could impact application availability. The patch uses multiplication in addition to the function `PerceptibleReciprocal()` in order to prevent such divide-by-zero conditions. This flaw affects ImageMagick versions prior to 7.0.9-0.
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 | Mar 13, 2023 | 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-7_q16hdri4Upgrade libmagickcore-7_q16hdri6Upgrade libmagick-devel-32bitUpgrade imagemagickUpgrade libmagick-develUpgrade libmagick-7_q16hdri4-32bitUpgrade imagemagick-extraUpgrade imagemagick-config-7-upstreamUpgrade imagemagick-develUpgrade imagemagick-devel-32bitUpgrade libmagickwand-7_q16hdri6-32bitUpgrade libmagickwand-7_q16hdri6Upgrade imagemagick-docUpgrade perl-perlmagickUpgrade imagemagick-config-7-suseUpgrade libmagickcore-7_q16hdri6-32bit | Jan 19, 2021 | Dec 8, 2020 |
| Ubuntu | — | Upgrade libmagickcore-6.q16-6-extraUpgrade libmagick++-6.q16-7Upgrade libmagickcore-6.q16-6Upgrade imagemagick-6.q16Upgrade libmagickcore-6.q16-3Upgrade libmagickcore-6.q16-3-extraUpgrade imagemagickUpgrade libmagick++-6.q16-8 | 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