Live threats

All CVEs / Python

CVE-2026-112900Python Pillow

Argument Injection in Pillow EPS Processing via Ghostscript

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Oct 19, 2026
Updated
Oct 27, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78, CWE-88
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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 13.0.0

Update Pillow to version 13.0.0 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pythonpillow≥ 2.6.0 < 13.0.0

Official advisories

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.