CVE-2021-20246 Denial of service in ImageMagick
An attacker can cause a denial of service by submitting a crafted image file that triggers a division by zero error in ImageMagick.
- 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-20246?
CVE-2021-20246 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 9 Mar 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 flaw was found in ImageMagick in MagickCore/resample.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
Weakness: CWE-369
Which versions are affected by CVE-2021-20246?
It affects 4 products.
Products include Debian Debian Linux, Fedoraproject Fedora, Imagemagick Imagemagick, Redhat Enterprise Linux.
How do I fix CVE-2021-20246?
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-2021-20246 being exploited?
There is no known exploitation of CVE-2021-20246 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2021-20246, GHSA-2phq-x5jx-m4c3, JLSEC-2026-883, UBUNTU-CVE-2021-20246.