CVE-2026-112900
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
PIL.EpsImagePlugin.Ghostscript() builds the Ghostscript command line using the input file path (fp.name) without sanitization, placing it at -f <infile>. A filename beginning with - is interpreted by Ghostscript as an option, giving command-line argument injection; chainable to RCE (see Impact). Reproduces with Pillow's default invocation (with -dSAFER enabled).
- No known exploitation
- Severity
- Critical, CVSS 9.2 (v4.0)
- EPSS
- 0.43% chance of exploitation in 30 days (EPSS, as of Oct 23, 2026)
- Affected packages
- Pillow (pip) >= 2.6.0, < 13.0.0, fixed in 13.0.0 · GHSA-w889-685w-c8fh