Skip to main content

ImageMagick EUVDEUVD-2026-128737

| CVE-2026-130663 MEDIUM
Code Injection (CWE-94)
2026-11-18 VulnCheck GHSA-43mw-9x5m-jmx7
5.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local write access to output directory
  2. Delivery
    Supply crafted filename for MAGICK/XPM/XBM/UIL encode
  3. Exploit
    Filename injected into generated image source
  4. Execution
    Victim compiles or includes generated output
  5. Impact
    Attacker-controlled code or headers execute

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of the following: (1) local access to the host running ImageMagick before 7.1.2-35 (or before 6.9.13-60 on the 6.x branch); (2) write access to the directory where the image is encoded AND control over the output filename/directory, per the vendor advisory; (3) the target operation must use one of the specific vulnerable encoders - MAGICK, XBM, XPM, or UIL - which embed the filename into generated source output; and (4) passive downstream user interaction (UI:P), i.e. another party must later compile, include, or otherwise process the generated source for injected code to take effect. LIMITING FACTORS that reduce real-world risk: the attacker already needs low-level local privileges (PR:L) and filesystem write access to the output location, the attack is high-complexity with a specific attack requirement (AC:H/AT:P), and it only matters where ImageMagick is configured to emit these particular source-style formats to attacker-influenced paths - it does not apply to typical remote or raster-only conversion workflows.

Impact

This is a genuine but low-urgency issue, not a drop-everything emergency, and the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:P) describes a local, high-complexity attack that requires existing privileges (PR:L), a specific attack condition (AT:P), and passive user interaction (UI:P) - far from a trivially exploitable remote flaw despite the high VC/VI/VA impact ratings that drive the 5.4 (MEDIUM) score. No EPSS score was supplied, the CVE is NOT in CISA KEV, and no public exploit was provided (the only reference is the vendor GHSA advisory, not PoC code), so there is no evidence of exploitation probability or active abuse. The vuln.today decision label is 'this_month', matching a patch-on-normal-cadence posture rather than act_now/emergency. The one caveat worth verifying: the 'RCE' tag and CWE-94 framing imply remote code execution, but the description and advisory both describe a LOCAL actor who already has write access to the output directory and control over the output filename - the realistic impact is injection of attacker-controlled content/headers into generated image-source output (e.g. MAGICK/XPM/XBM/UIL source), which only becomes code execution if that generated artifact is later compiled or interpreted. Treat the 'RCE' label as aspirational and scope the risk to environments where ImageMagick writes these formats to attacker-influenced paths.

Exploit ScenarioDerived

In a shared or automated image-processing pipeline, a local user who can place files in (or control the filename within) the output directory supplies a crafted filename that ImageMagick embeds verbatim when it generates MAGICK, XBM, XPM, or UIL source output. The resulting file contains attacker-injected headers or code, which executes or takes effect when another user or build step subsequently compiles or includes that generated source. No public exploit code was identified; exploitation requires local access, prior low privileges, and the described passive user interaction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Code injection in the MAGICK, XBM, XPM and UIL encoders of ImageMagick before 7.1.2-35 (and before 6.9.13-60 on the 6.x branch) lets a local user who controls the output filename and directory write extra headers or source code into the generated image source file. The attacker must already hold low-level local privileges plus write access to the encoding directory, and a downstream party must later compile, include or otherwise process the poisoned source for the injected code to matter, so CVSS 4.0 scores this 5.4 and the assessed impact is high-complexity local code injection rather than a remote compromise path. No public exploit code has been identified at time of analysis, there is no KEV listing, and the priority signal places it in this_month rather than an emergency response; it does not affect typical remote or raster-only conversion workflows.

RemediationAI

Upgrade to ImageMagick 7.1.2-35 on the 7.x branch or 6.9.13-60 on the 6.x branch - the vendor-released patch versions from the GitHub advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-2pc3-3339-3qc9 - and treat any source file already generated with these encoders from untrusted filenames as potentially tainted and re-generate or inspect it before compiling. Where upgrading cannot be done immediately, avoid running the MAGICK, XBM, XPM and UIL encoders against filenames that untrusted or lower-privileged users control, and ensure the output directory for such encodings is not writable by anyone other than the encoding process, since directory write access is a stated exploitation precondition; disabling those coders outright (for example by restricting them through the ImageMagick policy configuration) removes the vulnerable path but has the side effect of making XBM/XPM/UIL output unavailable to legitimate callers. Because the payload only takes effect when a downstream consumer compiles, includes or otherwise processes the generated source, review build pipelines that ingest ImageMagick-generated source files as a supplementary compensating measure until the patched release is deployed.

Affected VersionsENISA

ImageMagick 0 <6.9.13-60
ImageMagick 7.0.0 <7.1.2-35

Affected Packages

euvd imagemagick fix: 6.9.13-60, 7.1.2-35

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ImageMagick's MAGICK, XBM, XPM and UIL coders are output formats that emit source-style text: XBM and XPM produce C/C++-consumable bitmap headers, UIL produces Motif user-interface source, and the MAGICK pseudo-format writes a textual description of an image. Those emitters derive identifiers and header fields from the output filename/path, and the advisory (GHSA-2pc3-3339-3qc9) maps the flaw to CWE-94 code injection with a related CWE-116 improper encoding/escaping classification - the filename string reaches generated code without adequate neutralisation, so characters in a crafted name can break out of the intended header context and carry attacker-chosen directives into the resulting file. Exploitation is inherently local: it requires write access to the directory where encoding happens and control over the filename, plus use of one of these four specific encoders; it does not apply to purely raster output or standard remote conversion pipelines. The generated file must then be consumed by another party (UI:R) for the injected code to execute, which is why the assessment lands at AV:L/AC:H/PR:L/UI:R with unchanged scope despite high C/I/A weights.

Know when Imagemagick gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.4 MEDIUM
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
vuln.today AI 6.7 MEDIUM

Local filename-controlled injection needing prior write access and a victim action gives AV:L/AC:H/PR:L/UI:R; impacts follow the vendor's high VC/VI/VA with no scope change.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.7 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:33 cve.org
MEDIUM 5.4

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
ImageMagick is a near-default image library across web backends and CI pipelines
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy