Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.5

CVE-2020-27756: ImageMagick: Divide-by-zero error in image size calculations

CVE-2020-27756 · published 5 years ago
Summary

A bug in ImageMagick's image size calculations can cause the program to behave unexpectedly, potentially making it unavailable. This affects older versions of ImageMagick. To fix, update to version 7.0.9-0 or later.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
imagemagick imagemagick >= 6.9.9-34, < 6.9.10-69
>= 7.0.0-0, < 7.0.9-0
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Original advisory text
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 cra...
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
5.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-369Divide By Zero
Timeline
Published8 Dec 2020
Updated4 Nov 2026
First seen9 Jul 2026
Sources
CVE-2020-27756 · NVD
Track software like this
Free during beta