CVE-2026-112900 Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Attackers can achieve remote code execution by injecting Ghostscript arguments via malicious EPS filenames in Pillow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-112900?
CVE-2026-112900 is a critical command injection vulnerability in Python Pillow, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-112900?
3 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | From 2.6.0 | 13.0.0 |
pillow PyPI | From 2.6.0 | 13.0.0 |
Pillow PyPI | From 2.6.0 | 13.0.0 |
Products include Python Pillow.
How do I fix CVE-2026-112900?
Upgrade pillow to 13.0.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-112900 being exploited?
There is no known exploitation of CVE-2026-112900 in the wild and no public exploit code.
Public exploit code: 3 proofs of concept on GitHub.
Other vulnerabilities in Python Pillow
Sources
Also known as BIT-pillow-2026-112900, DEBIAN-CVE-2026-112900, ECHO-5292-da37-bea6, GHSA-w889-685w-c8fh, ROOT-APP-PYPI-CVE-2026-112900, UBUNTU-CVE-2026-112900.