CVE-2026-130663

ImageMagick before 7.1.2-35 Code Injection via MAGICK, XBM, XPM and UIL Encoders

Published Nov 18, 2026 CVSS 4.0 · 5.4 Medium EPSS n/a KEV · Not listed
Description
ImageMagick before 7.1.2-35 contains a code injection vulnerability in the MAGICK, XBM, XPM and UIL encoders that allows local attackers to inject content via crafted filenames. Attackers with access to the output directory and control over the filename can inject additional headers or code into the generated image source output.

Analysis

AI-generated

Technical impact

The flaw permits local attackers to inject content into the output of the MAGICK, XBM, XPM, and UIL encoders by supplying a crafted filename. This can result in additional headers or code being present in the generated image source. The CVE description does not confirm that the injected code will execute, so the exact consequence of the injection remains limited to the content of the image file.

Affected Systems

ImageMagick installations that are earlier than version 7.1.2-35 and that use one of the MAGICK, XBM, XPM, or UIL encoders are impacted. The vulnerability is confined to the encoder components, so any deployment that writes output to a directory where an attacker can control the filename is susceptible.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity, and the vulnerability is not listed in CISA’s KEV catalogue. EPSS data is not available. The issue requires local access to the output directory and the ability to influence the filename; no remote attack vector is documented. Because the flaw allows injection of headers or code into the image source, the risk is moderate but could be significant if the resulting image is subsequently processed by privileged services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to 7.1.2‑35 or newer, which includes a fix for this code injection bug.
  • Restrict write access to the output directory so that only trusted users can supply filenames, thereby preventing an attacker from providing malicious filenames.
  • If an upgrade cannot be performed immediately, validate or sanitize supplied filenames to remove special characters that could enable header or code injection.

Generated by OpenCVE AI on November 18, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description ImageMagick before 7.1.2-35 contains a code injection vulnerability in the MAGICK, XBM, XPM and UIL encoders that allows local attackers to inject content via crafted filenames. Attackers with access to the output directory and control over the filename can inject additional headers or code into the generated image source output.
Title ImageMagick before 7.1.2-35 Code Injection via MAGICK, XBM, XPM and UIL Encoders
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-94
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 11:33 AM
Reserved
Nov 17, 2026, 3:34 PM
Status
Awaiting Analysis
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM