CVE-2026-112900Python Pillow
Argument Injection in Pillow EPS Processing via Ghostscript
Critical 9.2 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Auth required
- No
- Published
- Oct 19, 2026
- Updated
- Oct 27, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Pillow versions 2.6.0 through 12.x.x are vulnerable to argument injection in EpsImagePlugin.Ghostscript when processing EPS files. An attacker controlling the filename can inject Ghostscript options; with a filename starting with @ and control of the referenced file, arbitrary command execution is possible even with -dSAFER enabled.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 13.0.0
Update Pillow to version 13.0.0 or later.
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 2.6.0 < 13.0.0 |
13.0.0 |
pip install "pillow>=13.0.0" |
Per OSV / GitHub Advisories (GHSA-w889-685w-c8fh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≥ 2.6.0 < 13.0.0 |
Official advisories
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:98120 · Nov 13, 2026 Critical
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:98111 · Nov 13, 2026 Critical
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:98109 · Nov 13, 2026 Critical
- Security update for python-Pillow · SUSE · SUSE-SU-2026:5194-1 · Nov 11, 2026 Critical
- Security update for python-Pillow · SUSE · SUSE-SU-2026:24701-1 · Nov 5, 2026 Critical
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:22301-1 · Nov 5, 2026 Critical
Also: Red Hat (+1), SUSE (+4)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory