CVE-2020-27773: Divide by Zero
A flaw was found in ImageMagick in MagickCore/gem-private.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type unsigned char or division by zero. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0.
Other sources
In ImageMagick, there is a division by zero at MagickCore/gem-private.h and an outside the range of representable values of type 'unsigned char' at MagickCore/quantum.h.
Reference: https://github.com/ImageMagick/ImageMagick/issues/1739
Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/3d71aa8265ffaaf686021a6fbd54c037f71ee3a2
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2020-27773?
CVE-2020-27773 is a vulnerability found in ImageMagick that allows an attacker to trigger undefined behavior, leading to potential impact on the application.
How severe is CVE-2020-27773?
CVE-2020-27773 has a severity value of 3.3, which is considered medium.
How does CVE-2020-27773 affect ImageMagick?
CVE-2020-27773 affects ImageMagick by allowing attackers to submit crafted files that can trigger undefined behavior and potentially cause division by zero or values outside the range of `unsigned char`.
Which versions of ImageMagick are affected by CVE-2020-27773?
CVE-2020-27773 affects ImageMagick versions 8:6.9.11.24+dfsg-1, 8:6.9.7.4+dfsg-16ubuntu6.11, 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, 8:6.9.10.23+dfsg-2.1+deb10u5, 8:6.9.11.60+dfsg-1.3+deb11u1, 8:6.9.11.60+dfsg-1.6, and versions between 7.0.0-0 and 7.0.9 (exclusive).
What is the remedy for CVE-2020-27773?
The remedy for CVE-2020-27773 is to update ImageMagick to version 8:6.9.11.24+dfsg-1 or apply the specific versions mentioned in the Ubuntu, Debian, or Red Hat advisories.