CVE-2020-27760 Denial of service in ImageMagick

Medium 5.5 Published Updated

A divide-by-zero error in ImageMagick allows attackers to cause a denial of service via crafted input files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-27760?

CVE-2020-27760 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 3 Dec 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-369

Which versions are affected by CVE-2020-27760?

It affects 2 products.

Products include Debian Debian Linux, Imagemagick Imagemagick.

How do I fix CVE-2020-27760?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-27760 being exploited?

There is no known exploitation of CVE-2020-27760 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-27760, GHSA-9v75-p4cg-f8c9, JLSEC-2026-858, UBUNTU-CVE-2020-27760.

Is CVE-2020-27760 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free