Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain write access to ImageMagick working directory
-
DeliveryPlant malicious gswin64c.exe
-
ExploitVictim converts PDF/PS/EPS file
-
ExecutionImageMagick launches rogue binary by bare name
-
ImpactExecute arbitrary code with ImageMagick privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | Exploitation requires a specific set of Windows-only preconditions: (1) Ghostscript must be UNREGISTERED so ImageMagick falls back to launching gswin64c.exe by bare name rather than a fully-qualified registry path; (2) the attacker must be able to write a malicious gswin64c.exe into ImageMagick's current working directory (the uncontrolled search path, CWE-427); and (3) a PDF, PostScript, or EPS file must be converted by ImageMagick, i.e. the Ghostscript delegate must actually be invoked. Limiting factors that reduce real-world risk: the vector is local (the attacker already needs filesystem write access to the working directory), attack complexity is high and a non-default configuration (unregistered Ghostscript) is needed, and a victim-triggered conversion (passive user interaction) is required. Non-Windows installations and installations where Ghostscript is properly registered are not affected. |
| Impact | This is a genuine but conditional, non-urgent issue rather than a mass-exploitation priority. The vendor-supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) already signals constrained exploitability: a LOCAL attack vector, HIGH attack complexity, a present attack requirement (AT:P, reflecting the non-default precondition that Ghostscript is unregistered), and passive user interaction (a victim must trigger a PDF/PS/EPS conversion). Against those limiters, the impact metrics are maximal (VC:H/VI:H/VA:H) because a hijacked gswin64c.exe runs arbitrary code with ImageMagick's privileges - hence the 7.3 HIGH score is driven by impact, not ease. POC code is publicly available (GitHub) and the finding is credibly sourced to VulnCheck, which raises the practical likelihood that someone could operationalize it, but there is NO CISA KEV listing and no EPSS score was provided in the input, so there is no evidence of active or widespread exploitation. Net: treat as a defense-in-depth / local-privilege-adjacent concern on Windows hosts that process untrusted documents, not an internet-facing emergency. |
| Exploit ScenarioDerived | On a Windows host where Ghostscript is installed but not registered (or absent while a stale binary name resolves via the search path), an attacker who can write a file named gswin64c.exe into ImageMagick's working directory waits for a user or automated job to convert a PDF, PostScript, or EPS file. ImageMagick's NTGhostscriptEXE() invokes the Ghostscript delegate by bare name, so the planted binary executes with ImageMagick's privileges. A public proof-of-concept for this delegate hijack exists on GitHub. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 11, 2026
ImageMagick on Windows (versions through 7.1.2-33 and the legacy 6.x line through 6.9.13-58) can be induced to execute an attacker-supplied gswin64c.exe when it converts a PDF, PostScript, or EPS file while Ghostscript is left unregistered. The flaw is an uncontrolled search path (CWE-427) in NTGhostscriptEXE(): instead of resolving the Ghostscript binary through the registry, ImageMagick falls back to launching 'gswin64c.exe' by bare filename, so a malicious binary dropped in ImageMagick's current working directory is executed with ImageMagick's privileges. Publicly available exploit code exists, but there is no confirmed active exploitation (not in CISA KEV), and exploitation is conditional: it requires a Windows host with unregistered Ghostscript, attacker write access to the working directory, and a victim-triggered conversion - making this a genuine but situational, non-urgent issue rather than a mass-exploitation priority.
RemediationAI
The most direct and reliable mitigation is to register Ghostscript properly on affected Windows hosts so NTGhostscriptEXE() resolves the interpreter through the registry instead of falling back to the bare name 'gswin64c.exe'; installing or reinstalling a current Ghostscript build (or restoring the HKLM\SOFTWARE\GPL Ghostscript registry keys) removes the vulnerable code path entirely and has no functional downside for delegate-based PDF/PS/EPS conversion. In parallel, harden the search path: ensure ImageMagick's current working directory is never a location writable by unprivileged or untrusted users, run conversion services from a locked-down directory, and avoid invoking the delegate from shared or predictable directories such as temp folders. Where feasible, upgrade ImageMagick to a release newer than 7.1.2-33 (or 6.9.13-58 for the legacy line) - note that no exact fixed version is confirmed in the supplied intelligence, so validate the fix against the upstream repository at https://github.com/ImageMagick/ImageMagick before relying on it, and treat the patch status as not independently confirmed. Where Ghostscript delegates are not needed by the business workflow, removing or disabling the Ghostscript delegate and denying PDF/PS/EPS conversion removes the attack surface at the cost of losing those input formats. Limiting conversion of untrusted documents and applying least-privilege execution to the ImageMagick service reduces blast radius. A public proof-of-concept is available at https://github.com/ghostx-86/exploitarium/tree/main/imagemagick-gs-delegate-hijack-poc and can be used to validate detection and confirm whether a given host is vulnerable.
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 delegates the rasterization of PDF, PostScript, and EPS inputs to Ghostscript through an external delegate process rather than parsing those formats itself. On Windows, the helper function NTGhostscriptEXE() in MagickCore/nt-base.c (referenced ranges L1469-L1511 and L2829-L2832) first attempts to locate the Ghostscript executable via registry lookups, which is the normal and safe path. When Ghostscript is not registered, however, the code degrades to invoking the executable by its bare name, 'gswin64c.exe', and Windows' default DLL/executable search order resolves that name against the current working directory before system directories. This is the classic CWE-427 Uncontrolled Search Path Element: the path is influenced by a directory the attacker may control, so the delegate launch becomes a code-execution primitive rather than a benign fallback. The assessed CVSS:3.1 vector AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H confirms a local-vector, high-complexity, no-privileges-required, user-interaction-required issue with high confidentiality, integrity, and availability impact confined to the ImageMagick process's security scope; the CVE-record CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) is broadly consistent. The attack surface is the delegate subsystem rather than an image-parsing memory-safety bug, so the root cause is configuration- and path-resolution-dependent, not a corrupted heap or buffer.
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:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local filesystem write and a triggered conversion are needed (AV:L, UI:R); unregistered Ghostscript plus planting in the working dir makes it AC:H; resulting code execution yields C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ImageMagick on Windows through 7.1.2-33 and 6.9.13-58 contains an uncontrolled search path vulnerability in NTGhostscriptEXE() that launches gswin64c.exe by bare name when Ghostscript is unregistered. Attackers can plant a malicious gswin64c.exe in the working directory to execute code with ImageMagick privileges when PDF, PostScript, or EPS files are converted.
Technical POC Analysis
CWE-427 (Uncontrolled Search Path Element) in ImageMagick's Windows Ghostscript delegate handling, specifically in NTGhostscriptEXE().
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 public PoC link from github
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
ImageMagick on Windows, including versions through 7.1.2-33 and the legacy 6.x line through 6.9.13-58, can be abused in document-conversion workflows to execute attacker-controlled code on affected hosts. The issue requires unregistered Ghostscript, attacker write access to the working directory, and a victim-triggered PDF, PostScript, or EPS conversion; publicly available exploit code exists, though exploitation is conditional rather than broadly observed. Leadership should prioritize inventory and hardening of Windows systems that process untrusted documents with ImageMagick, because a successful attack could compromise host integrity, data confidentiality, and service availability.
No vendor-released patch identified at time of analysis. Interim mitigations: ensure Ghostscript is installed and properly registered so ImageMagick does not fall back to launching gswin64c.exe by bare filename; restrict write permissions to ImageMagick working directories; remove or block untrusted gswin64c.exe files; disable PDF/PS/EPS conversion if not required; run ImageMagick with least privilege and isolate conversion services; monitor for unexpected gswin64c.exe execution.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d
EUVD-2026-96696
GHSA-92c8-5jfq-j2vj
NVD
CVE.org
EPSS
VulDB
Exploit-DB