CVE-2020-27770
ImageMagick vulnerability analysis and mitigation

Overview

Due to a missing check for 0 value of replace_extent, it is possible for offset p to overflow in SubstituteString(), causing potential impact to application availability. This could be triggered by a crafted input file that is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68 (NVD, Red Hat).

Technical details

The vulnerability is classified as an Integer Overflow or Wraparound (CWE-190). It has a CVSS v3.1 Base Score of 5.5 (Medium) with the following vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The flaw exists in the SubstituteString() function where a missing validation of the replace_extent value can lead to an integer overflow condition (NVD).

Impact

The vulnerability can result in a denial of service condition through application crashes when processing specially crafted image files. The impact is limited to availability with no direct effects on confidentiality or integrity (Ubuntu).

Exploitability

The vulnerability requires local access and user interaction to exploit. An attacker would need to trick a user or automated system into processing a specially crafted image file to trigger the vulnerability (NVD).

Mitigation and workarounds

The vulnerability has been fixed in ImageMagick version 7.0.8-68. Users are advised to upgrade to this version or later. Multiple Linux distributions have also released security updates to address this vulnerability, including Ubuntu, Debian, and Red Hat Enterprise Linux (Debian Tracker).

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
  • cpe:2.3:a:imagemagick:imagemagick
NoYesJul 30, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • Magick.NET-Q8-x64
NoYesJul 30, 2026
CVE-2026-66011MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick-config-7-upstream-open
NoYesJul 25, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • ImageMagick-config-7-upstream-limited
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • seal-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