CVE Database›Document archive›CVE-2020-27760

CVE-2020-27760

ImageMagick: division by zero at MagickCore/enhance.c

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · October 4, 2019

Updated · November 22, 2025

Description

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

Statement

This flaw is out of support scope for Red Hat Enterprise Linux 5, 6, and 7. Inkscape is not affected because it no longer uses a bundled ImageMagick in Red Hat Enterprise Linux 8. For more information regarding support scopes, please see https://access.redhat.com/support/policy/updates/errata .

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-369 · Divide By Zero