CVE-2021-20176 Denial of service in ImageMagick

Medium 5.5 Published Updated

An attacker can cause a denial of service in ImageMagick by submitting a crafted file that triggers a divide-by-zero error.

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-2021-20176?

CVE-2021-20176 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 5 Feb 2021. 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

A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability.

Weakness: CWE-369

Which versions are affected by CVE-2021-20176?

It affects 2 products.

Linux distribution packages (6)
ImageMagick SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions7.0.7.34-10.18.1
ImageMagick SUSE:Linux Enterprise Module for Desktop Applications 15 SP3All versions7.0.7.34-10.18.1
ImageMagick SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions7.0.7.34-10.18.1
ImageMagick SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions7.0.7.34-10.18.1
ImageMagick openSUSE:Leap 15.2All versions7.0.7.34-lp152.12.18.1
ImageMagick openSUSE:Leap 15.3All versions7.0.7.34-10.18.1

Products include Debian Debian Linux, Imagemagick Imagemagick.

How do I fix CVE-2021-20176?

Apply the vendor's patch.

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-2021-20176 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as CVE-2021-20242, DEBIAN-CVE-2021-20176, GHSA-rjh9-hq94-crmg, JLSEC-2026-877, SUSE-SU-2021:3996-1, UBUNTU-CVE-2021-20176 and 2 more.

Is CVE-2021-20176 in your software?

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

Check your SBOMs for free