CVE-2021-20310 Denial of service in ImageMagick
A division by zero in ImageMagick allows attackers to cause a denial of service via crafted image files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-20310?
CVE-2021-20310 is a high-severity denial of service vulnerability in Imagemagick Imagemagick, published on 11 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero ConvertXYZToJzazbz() of MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker and processed by an application using ImageMagick. The highest threat from this vulnerability is to system availability.
Weakness: CWE-369
Which versions are affected by CVE-2021-20310?
It affects 1 product.
Products include Imagemagick Imagemagick.
How do I fix CVE-2021-20310?
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-20310 being exploited?
There is no known exploitation of CVE-2021-20310 in the wild and no public exploit code.
Other vulnerabilities in Imagemagick Imagemagick
Sources
Also known as GHSA-g68g-qfgw-mffh, JLSEC-2026-885.