Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-27755
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2020-27755 is a security vulnerability discovered in ImageMagick, affecting the image processing software's memory handling functionality. The vulnerability was identified in the SetImageExtent() function of MagickCore/image.c, where an incorrect image depth size could lead to memory leaks. This issue was discovered by Suhwan Song from Seoul National University and was later patched in ImageMagick version 7.0.9-0 (Red Hat Bugzilla).

Technical details

The vulnerability stems from improper validation of image depth size in the SetImageExtent() function. When processing an image with invalid depth size, the code failed to reset the size before throwing an exception, resulting in memory leaks. The issue specifically occurred in the ResizeMagickMemory function within ImageMagick/MagickCore/memory.c (GitHub Issue). A patch was implemented to reset the depth to a proper size before throwing an exception (OpenSUSE Patch).

Impact

The vulnerability could be exploited if a user or automated system was tricked into processing a specially crafted image file, potentially leading to denial of service or affecting system reliability through memory leaks (Ubuntu Security).

Exploitability

The vulnerability can be triggered by processing a maliciously crafted input file through ImageMagick. While the flaw requires user interaction to process a malformed image, it could affect application reliability and potentially lead to denial of service conditions (Red Hat Bugzilla).

Mitigation and workarounds

The vulnerability has been patched in ImageMagick version 7.0.9-0. Various Linux distributions have released security updates to address this issue. Ubuntu users can update their systems through standard system updates, with fixes available for Ubuntu 20.10, 20.04 LTS, and 18.04 ESM versions (Ubuntu Security).

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-93590MEDIUM6.3
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 18, 2026
CVE-2026-93589MEDIUM6.3
  • ImageMagick logoImageMagick
  • cpe:2.3:a:imagemagick:imagemagick
NoYesSep 18, 2026
CVE-2026-93587MEDIUM4.8
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 18, 2026
CVE-2026-93588LOW2.3
  • ImageMagick logoImageMagick
  • imagemagick
NoYesSep 18, 2026
CVE-2026-93586LOW2.1
  • ImageMagick logoImageMagick
  • cpe:2.3:a:imagemagick:imagemagick
NoYesSep 18, 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