Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local write access to output directory
-
DeliverySupply crafted filename for MAGICK/XPM/XBM/UIL encode
-
ExploitFilename injected into generated image source
-
ExecutionVictim compiles or includes generated output
-
ImpactAttacker-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
More in Imagemagick
View allThe (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
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
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
ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc
Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv
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
The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit
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
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
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
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
EUVD-2026-128737
GHSA-43mw-9x5m-jmx7
NVD
CVE.org
EPSS
Exploit-DB