Skip to main content

ImageMagick EUVDEUVD-2026-96696

| CVE-2026-108693 HIGH
Uncontrolled Search Path Element (CWE-427)
2026-10-11 VulnCheck GHSA-92c8-5jfq-j2vj
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain write access to ImageMagick working directory
  2. Delivery
    Plant malicious gswin64c.exe
  3. Exploit
    Victim converts PDF/PS/EPS file
  4. Execution
    ImageMagick launches rogue binary by bare name
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 public PoC No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

ImageMagick 7.0.0-0 ≤7.1.2-33
ImageMagick 0 ≤6.9.13-58

Affected Packages

euvd imagemagick no fix

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

Vendor (VulnCheck) PRIMARY 7.3 HIGH
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
vuln.today AI 7.0 HIGH

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.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
ImageMagick is very widely deployed; Windows-only, unregistered-Ghostscript subset narrows footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-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

CVE-2026-23876 CRITICAL POC
9.8 Jan 20

Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d

Vendor StatusVendor

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