Divide By Zero Affecting ImageMagick-perl package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.06% (29th 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-RHEL6-IMAGEMAGICKPERL-1409203
  • 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 RHEL:6 ImageMagick-perl.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ImageMagick-perl package and not the ImageMagick-perl package as distributed by RHEL. See How to fix? for RHEL:6 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