CVE-2026-56379
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2026-56379 is a command injection vulnerability in ImageMagick's SVG decoder (coders/svg.c) that allows attackers to inject arbitrary Magick Vector Graphics (MVG) drawing commands via crafted SVG files. The vulnerability affects ImageMagick versions before 7.1.2-15 (7.x branch) and before 6.9.13-40 (6.x branch). It was disclosed on June 23, 2026, with patches released the same day. The CVSS v3.1 base score is 8.1 (High), and the CVSS v4.0 base score is 9.2 (Critical) per Feedly threat intelligence data (Github Advisory, ImageMagick Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper encoding or escaping of output (CWE-116) combined with OS command injection (CWE-78) in ImageMagick's internal SVG decoder located in coders/svg.c. When ImageMagick processes an SVG file, it translates SVG elements into MVG drawing commands; however, insufficient sanitization allows attacker-controlled SVG content to break out of the expected command structure and inject arbitrary MVG commands that execute during rendering. Exploitation requires no authentication or user interaction beyond supplying a malicious SVG file to an ImageMagick-processing endpoint, though the CVSS v3.1 attack complexity is rated High, indicating some preconditions or variability in exploitation. The vulnerability was reported by researcher phenggeler (ImageMagick Advisory, Github Advisory).

Impact

Successful exploitation allows an unauthenticated remote attacker to execute arbitrary MVG commands during SVG rendering, which can lead to arbitrary code execution on the host system running ImageMagick. The potential impact spans high confidentiality, integrity, and availability loss — attackers could read sensitive files, modify data, or crash the image processing service. Applications that accept user-supplied SVG files and process them with a vulnerable ImageMagick version (e.g., web applications, document converters, or media pipelines) are at particular risk of server-side compromise (Red Hat Errata, Github Advisory).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation (Github Advisory). The EPSS score is approximately 0.895–1.19%, placing it in roughly the 55th percentile for exploitation likelihood within 30 days. No threat actor attribution has been reported, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Vulnerability scanners including Nessus and Qualys have detection plugins available (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify applications or services that accept SVG file uploads or process SVG images using ImageMagick versions prior to 7.1.2-15 or 6.9.13-40 (e.g., image conversion APIs, CMS platforms, document processors).
  2. Craft malicious SVG: Create a specially crafted SVG file that embeds injected MVG drawing commands within SVG elements processed by coders/svg.c. The injection exploits the lack of proper escaping when SVG content is translated to MVG commands.
  3. Submit the SVG: Upload or supply the malicious SVG file to the target application's image processing endpoint, triggering ImageMagick to render or convert the file.
  4. MVG command execution: During SVG-to-MVG translation and rendering, the injected MVG commands execute in the context of the ImageMagick process, potentially enabling file read/write, shell command execution, or other actions depending on the MVG primitives supported.
  5. Achieve objective: Leverage code execution to exfiltrate data, establish persistence, or pivot to other internal systems accessible from the image processing server (ImageMagick Advisory, Github Advisory).

Indicators of compromise

  • Network: Unexpected outbound connections from the ImageMagick process or the application server to external IPs following SVG file processing; unusual DNS lookups originating from image processing services.
  • File System: Unexpected files written to the server filesystem by the ImageMagick process (e.g., web shells, scripts, or data exfiltration staging files); modified files in directories writable by the ImageMagick service account.
  • Logs: Application logs showing SVG file uploads or conversion requests followed by anomalous process behavior; ImageMagick error logs referencing unexpected MVG command sequences or coders/svg.c errors.
  • Process: Unusual child processes spawned by the ImageMagick process (e.g., sh, bash, curl, wget, python) that are not part of normal image processing workflows.

Mitigation and workarounds

Upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch) to remediate the vulnerability. Red Hat has issued RHSA-2026:32961 addressing this and other ImageMagick vulnerabilities for Red Hat Enterprise Linux 7 Extended Lifecycle Support. As interim workarounds: restrict SVG file processing to trusted sources only, disable SVG support in ImageMagick's policy.xml if SVG handling is not required, and implement input validation and sandboxing around image processing operations. Amazon Linux 2 and Amazon Linux 2023 updates are also available (Red Hat Errata, ImageMagick Advisory).

Community reactions

Red Hat rated this vulnerability as 'Important' severity and issued a security errata (RHSA-2026:32961) for RHEL 7 ELS on June 29, 2026, addressing CVE-2026-56379 alongside several other ImageMagick vulnerabilities (Red Hat Errata). openSUSE and Amazon Linux also issued security advisories and package updates. No significant public researcher commentary or social media discussion has been identified beyond standard vulnerability database aggregation.

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
  • libMagick++-7_Q16HDRI5
NoYesJul 30, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • ImageMagick-config-7-upstream-limited
NoYesJul 30, 2026
CVE-2026-66011MEDIUM4.8
  • ImageMagick logoImageMagick
  • ImageMagick-devel
NoYesJul 25, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • libMagick++-devel
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • Magick.NET-Q8-x86
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