CVE-2020-27760Divide By Zero in Imagemagick

CWE-369Divide By Zero10 documents7 sources
Severity
5.5MEDIUMNVD
OSV6.5
EPSS
0.2%
top 63.65%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 3
Latest updateOct 15

Description

In `GammaImage()` of /MagickCore/enhance.c, depending on the `gamma` value, it's possible to trigger a divide-by-zero condition when a crafted input file is processed by ImageMagick. This could lead to an impact to application availability. The patch uses the `PerceptibleReciprocal()` to prevent the divide-by-zero from occurring. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages5 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.24+dfsg-1 (bookworm)
NVDimagemagick/imagemagick7.0.0-07.0.8-68+1
Debianimagemagick/imagemagick< 8:6.9.11.24+dfsg-1+3
Ubuntuimagemagick/imagemagick< 8:6.8.9.9-7ubuntu5.16+esm2
CVEListV5imagemagick/imagemagickImageMagick 7.0.8-68

Also affects: Debian Linux 9.0

Patches

🔴Vulnerability Details

3
GHSA
GHSA-9v75-p4cg-f8c9: In `GammaImage()` of /MagickCore/enhance2022-05-24
OSV
imagemagick vulnerabilities2022-03-18
OSV
CVE-2020-27760: In `GammaImage()` of /MagickCore/enhance2020-12-03

📋Vendor Advisories

5
Ubuntu
ImageMagick vulnerabilities2024-10-15
Ubuntu
ImageMagick vulnerabilities2022-03-18
Ubuntu
ImageMagick vulnerabilities2021-06-15
Debian
CVE-2020-27760: imagemagick - In `GammaImage()` of /MagickCore/enhance.c, depending on the `gamma` value, it's...2020
Red Hat
ImageMagick: division by zero at MagickCore/enhance.c2019-10-04

💬Community

1
Bugzilla
CVE-2020-27760 ImageMagick: division by zero at MagickCore/enhance.c2020-11-03