CVE-2026-112900: Pillow: Argument Injection in Ghostscript call, potentially leading into RCE

Published Oct 19, 2026
·
Updated

Pillow is a Python imaging library. From 2.6.0 until 13.0.0, Pillow is vulnerable to argument injection when invoking Ghostscript for EPS input. EpsImagePlugin.Ghostscript passes a caller-controlled input filename after -f without converting it to a safe absolute path, so a name beginning with a hyphen can be interpreted as a Ghostscript option. An attacker who controls the filename can inject Ghostscript arguments. Arbitrary command execution specifically requires a leading @ argument-file filename and control of the referenced text file containing additional Ghostscript arguments; the reported chain reproduces with the default -dSAFER invocation. This issue is fixed in version 13.0.0.

Affected Software

1 affected component
pypi/Pillow>=2.6.0<13.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pillow to a version that resolves this vulnerability.

    Fixed in 13.0.0

Event History

Oct 19, 2026
CVE Published
via MITRE·10:07 PM
Data Sourced
via MITRE·10:07 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using Pillow versions from 2.6.0 through versions before 13.0.0 are affected when they invoke Ghostscript to process EPS input and an attacker can control the input filename.

2

What does an attacker need to achieve arbitrary command execution?

The attacker needs to control a filename beginning with @ so it is treated as a Ghostscript argument file, and must also control the referenced text file containing additional Ghostscript arguments. The reported command-execution chain works with the default -dSAFER invocation.

3

Is the default Ghostscript invocation sufficient to prevent exploitation?

No. The reported arbitrary-command-execution chain reproduces despite Pillow using the default -dSAFER Ghostscript argument.

4

What is the available fix?

Upgrade Pillow to version 13.0.0, which fixes the argument injection issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203