Divide By Zero Affecting ImageMagick package, versions *


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS7-IMAGEMAGICK-2010543
  • published26 Jul 2021
  • disclosed6 Oct 2019

Introduced: 6 Oct 2019

CVE-2020-27756  (opens in a new tab)
CWE-369  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

There is no fixed version for Centos:7 ImageMagick.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ImageMagick package and not the ImageMagick package as distributed by Centos. See How to fix? for Centos:7 relevant fixed versions and status.

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.

CVSS Scores

version 3.1