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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ImageMagick | ImageMagick | 7.0.0-0 – ≤ 7.1.2-33, ≤ 6.9.13-58 | — |
Advisories 1
- WID-SEC-2026-3867 ImageMagick: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
References
- https://github.com/ghostx-86/exploitarium/tree/main/imagemagick-gs-delegate-hijack-poc exploit
- https://github.com/ImageMagick/ImageMagick/blob/211e5b975a0019a88dcef5f84c1193f46738d815/MagickCore/nt-base.c#L1469-L1511 technical-description
- https://github.com/ImageMagick/ImageMagick/blob/211e5b975a0019a88dcef5f84c1193f46738d815/MagickCore/nt-base.c#L2829-L2832 technical-description
- https://github.com/ImageMagick/ImageMagick product
- VulnCheck Advisory: ImageMagick through 7.1.2-33 and 6.9.13-58 Uncontrolled Search Path via Ghostscript Delegate third-party-advisory