CVE-2026-108693

ImageMagick through 7.1.2-33 and 6.9.13-58 Uncontrolled Search Path via Ghostscript Delegate

Published Oct 11, 2026 CVSS 4.0 · 7.3 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ImageMagick on Windows versions through 7.1.2-33 and 6.9.13-58 contains an uncontrolled search‑path flaw in the NTGhostscriptEXE() function. The function launches the Ghostscript executable gswin64c.exe by bare filename when Ghostscript is not registered. An attacker can place a malicious gswin64c.exe in the working directory and cause ImageMagick to execute it while converting PDF, PostScript, or EPS files. This flaw permits code execution with the privileges of the ImageMagick process, potentially enabling an attacker to run arbitrary instructions, modify data, or elevate privileges.

Affected Systems

The vulnerability affects ImageMagick software distributed by ImageMagick:ImageMagick on Windows platforms, specifically versions 7.1.2‑33 and earlier, and 6.9.13‑58 and earlier. Any deployment that processes PDF, PostScript, or EPS input using these versions is susceptible.

Risk and Exploitability

The CVSS score of 7.3 denotes a high severity risk. The EPSS score is not available, so exploitation probability is uncertain. The vulnerability is not listed in CISA KEV, meaning no known large‑scale exploits have been reported yet, but the flaw remains exploitable if an attacker can control or write to the working directory or otherwise place a malicious file with the same name. The likely attack vector is local file placement with the ImageMagick process running under elevated privileges. If a service or web application uses ImageMagick to process user‑supplied files, an attacker could potentially trigger execution by supplying a crafted file set that causes the library to invoke the hijacked executable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ImageMagick to a version later than 7.1.2-33 or 6.9.13-58, in which the NTGhostscriptEXE() function has been fixed and requires a fully qualified Ghostscript path.
  • Verify that Ghostscript is properly registered in the system registry and that the ImageMagick installation cannot locate a malicious executable by filename alone.
  • As a temporary measure, ensure that the working directory used by ImageMagick does not contain any executable files named gswin64c.exe, and remove or rename any such files if present.

Generated by OpenCVE AI on October 11, 2026 at 03:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ImageMagick through 7.1.2-33 and 6.9.13-58 Uncontrolled Search Path via Ghostscript Delegate
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-427
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.3, 'vector': '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'}

Weaknesses
  • CWE-427

    Uncontrolled Search Path Element

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 13, 2026, 7:53 PM
Reserved
Oct 10, 2026, 11:08 PM
Status
Analyzed
Published
Oct 11, 2026, 2:16 AM
Modified
Nov 3, 2026, 4:52 PM
Severity
Moderate
Public date
Oct 11, 2026, 1:35 AM