CVE-2021-20311
ImageMagick vulnerability analysis and mitigation

Overview

A division by zero vulnerability (CVE-2021-20311) was discovered in ImageMagick versions before 7.0.11. The flaw exists in the sRGBTransformImage() function within the MagickCore/colorspace.c file (NVD, Red Hat).

Technical details

The vulnerability is caused by a division by zero condition in the sRGBTransformImage() function located in MagickCore/colorspace.c. This issue can be triggered when processing specially crafted image files, potentially leading to undefined behavior (Red Hat Bugzilla).

Impact

When exploited, this vulnerability can trigger undefined behavior in the application, potentially leading to application crashes or denial of service conditions (NVD).

Exploitability

The vulnerability can be triggered by processing a specially crafted image file. No known exploits were reported in the wild at the time of discovery (ManageEngine).

Mitigation and workarounds

Users should upgrade to ImageMagick version 7.0.11 or later which contains the fix for this vulnerability. The issue was addressed in an upstream patch (Red Hat Bugzilla).

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-64685MEDIUM5.3
  • ImageMagick logoImageMagick
  • ImageMagick-config-7-upstream-open
NoYesJul 30, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • ImageMagick-perl
NoYesJul 30, 2026
CVE-2026-66011MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick-c++
NoYesJul 25, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • libMagickWand-7_Q16HDRI10
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • ImageMagick
NoYesJul 30, 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