CVE-2021-20241 Denial of service in ImageMagick

Medium 5.5 Published Updated

Attackers can cause a denial of service via division by zero in ImageMagick when processing crafted JP2 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-2021-20241?

CVE-2021-20241 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 coders/jp2.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-20241?

It affects 2 products.

Products include Debian Debian Linux, Imagemagick Imagemagick.

How do I fix CVE-2021-20241?

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-20241 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-20241, GHSA-f43q-2fwm-h7gr, JLSEC-2026-879, UBUNTU-CVE-2021-20241.

Is CVE-2021-20241 in your software?

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

Check your SBOMs for free