# CVE-2020-27756: imagemagick: In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero condi...

CVE-2020-27756 is fixed in 21 products on 1 platform, first by imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.4, released May 14, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-27756
- Priority: Routine
- CVSS: n/a (Low)
- EPSS: 0.0084
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 8, 2020

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | imagemagick Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-imagemagick-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | imagemagick-6-common Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [imagemagick-6-common 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-imagemagick-6-common-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | imagemagick-6.q16 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [imagemagick-6.q16 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-imagemagick-6.q16-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | imagemagick-6.q16hdri Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [imagemagick-6.q16hdri 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-imagemagick-6.q16hdri-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | imagemagick-common Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [imagemagick-common 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-imagemagick-common-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libimage-magick-perl Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libimage-magick-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libimage-magick-perl-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libimage-magick-q16-perl Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libimage-magick-q16-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libimage-magick-q16-perl-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libimage-magick-q16hdri-perl Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libimage-magick-q16hdri-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libimage-magick-q16hdri-perl-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagick++-6-headers Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagick++-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagick-6-headers-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagick++-6.q16-8 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagick++-6.q16-8 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagick-6.q16-8-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagick++-6.q16hdri-8 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagick++-6.q16hdri-8 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagick-6.q16hdri-8-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6-arch-config Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6-arch-config 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6-arch-config-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6-headers Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6-headers-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6.q16-6 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6.q16-6-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6.q16-6-extra Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6.q16-6-extra 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6.q16-6-extra-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6.q16hdri-6 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6.q16hdri-6 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6.q16hdri-6-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickcore-6.q16hdri-6-extra Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickcore-6.q16hdri-6-extra 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickcore-6.q16hdri-6-extra-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickwand-6-headers Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickwand-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickwand-6-headers-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickwand-6.q16-6 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickwand-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickwand-6.q16-6-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | libmagickwand-6.q16hdri-6 Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [libmagickwand-6.q16hdri-6 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmagickwand-6.q16hdri-6-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |
| Linux | perlmagick Ubuntu 20.04 LTS (focal) | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | [perlmagick 8:6.9.10.23+dfsg-2.1ubuntu11.4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-perlmagick-8-6.9.10.23-dfsg-2.1ubuntu11.4.md) | May 14, 2021 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
