CVE-2026-56379

ImageMagick - Command Injection via SVG Decoder

Published Jun 23, 2026 CVSS 4.0 · 9.2 Critical EPSS 1.6% KEV · Not listed
Description
ImageMagick before 7.1.2-15 and 6.9.13-40 contains a command injection vulnerability in the SVG decoder that allows attackers to inject arbitrary MVG drawing commands. Attackers can craft malicious SVG files with injected Magick Vector Graphics commands that execute during rendering.

Analysis

AI-generated

Technical impact

ImageMagick versions prior to 7.1.2-15 and 6.9.13-40 contain a flaw in the SVG decoder that permits the injection of arbitrary MVG drawing commands. When a malicious SVG file is processed for rendering, the injected commands are executed by the ImageMagick engine as part of the rendering workflow, potentially altering the produced output in a way defined by the attacker. The vulnerability is classified as command injection affecting the image conversion process, as indicated by the CWE identifiers for improper encoding (CWE‑116) and OS command injection (CWE‑78).

Affected Systems

All installations of ImageMagick that use the SVG decoder and run versions earlier than 7.1.2-15 or 6.9.13-40 are affected. Vendors deploying ImageMagick 7.x prior to the 7.1.2-15 release or ImageMagick 6.9.13-40 remain at risk. The flaw does not depend on network exposure; it triggers when an SVG file is provided to the ImageMagick toolchain for rendering by any user with file‑system access to the content.

Risk and Exploitability

The flaw is a high‑severity vulnerability with a CVSS score of 9.2. The EPSS score is less than 1 %, indicating a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is the delivery of a crafted SVG file that is subsequently rendered by ImageMagick; based on the description it is inferred that no additional privileges or remote capabilities are required. As the injected commands are interpreted during rendering, the impact is confined to the rendering process and the output it produces.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ImageMagick to version 7.1.2-15 or later, or version 6.9.13-40 or later, to eliminate the SVG decoder flaw.
  • Disable the SVG decoder plugin or remove SVG support to eliminate the attack surface.
  • Restrict handling of SVG files to trusted users or preprocess the SVG input with validation and sanitization to prevent injection of malicious MVG commands.

Generated by OpenCVE AI on August 3, 2026 at 07:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xpg8-7m6m-jf56 ImageMagick: SVG-to-MVG Command Injection via coders/svg.c
Ubuntu USN Ubuntu USN USN-8739-1 ImageMagick vulnerabilities
Ubuntu USN Ubuntu USN USN-8739-2 ImageMagick vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N'}

cvssV4_0

{'score': 0, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageMagick before 7.1.2-15 and 6.9.13-40 contains a command injection vulnerability in the SVG decoder that allows attackers to inject arbitrary MVG drawing commands. Attackers can craft malicious SVG files with injected Magick Vector Graphics commands that execute during rendering.
Title ImageMagick - Command Injection via SVG Decoder
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-116
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N'}

cvssV4_0

{'score': 0, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jun 21, 2026, 2:05 AM
Status
Modified
Published
Jun 23, 2026, 1:16 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Important
Public date
Jun 23, 2026, 12:13 PM