CVE-2021-20244
ImageMagick vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2021-20244) was discovered in ImageMagick's MagickCore/visual-effects.c component. The flaw was reported in February 2021 and affects ImageMagick versions up to (excluding) 7.0.10-62. The vulnerability allows an attacker to trigger undefined behavior in the form of math division by zero when processing specially crafted image files (NVD, Red Hat Bugzilla).

Technical details

The vulnerability exists in the ImplodeImage routine within MagickCore/visual-effects.c, where five lines of code could trigger a divide-by-zero condition if a crafted image is processed with specific attributes set to 0. The vulnerability has a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD, Red Hat Bugzilla).

Impact

The primary impact of this vulnerability is to system availability. When exploited, it can cause the application to crash, resulting in a denial of service condition. While the main threat is to availability, there could potentially be other unspecified impacts related to undefined behavior (NVD, Red Hat Bugzilla).

Exploitability

The vulnerability can be triggered by submitting a specially crafted image file that is processed by ImageMagick. The attack requires user interaction, as the malicious file must be processed by the application (NVD).

Mitigation and workarounds

The vulnerability was fixed in ImageMagick version 7.0.10-62 by replacing the division operations with the PerceptibleReciprocal() routine to prevent the divide-by-zero condition. Various Linux distributions have also released security updates to address this vulnerability (GitHub PR, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86421MEDIUM6.3
  • ImageMagick logoImageMagick
  • ImageMagick-devel
NoYesSep 07, 2026
CVE-2026-86425MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick.src
NoYesSep 07, 2026
CVE-2026-86423MEDIUM4.8
  • ImageMagick logoImageMagick
  • seal-ImageMagick
NoYesSep 07, 2026
CVE-2026-86424LOW2
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 07, 2026
CVE-2026-86422LOW1
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management