Ad · Leaderboard 728×90

CVE-2026-112900

9.2Critical

Published 19 Oct 2026 · NVD status: Received · AI triage by gemini-3.8-flash

9.2Critical
Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None
Impact
Full C/I/A compromise
Weakness
CWE-78, CWE-88

Impact

Attackers can execute arbitrary commands on the host by supplying a specially crafted filename and argument file to the EPS parser. They need the ability to control the input filename passed to Pillow and control a referenced argument file on disk.

Root cause

EpsImagePlugin fails to sanitize or convert input filenames into safe absolute paths before passing them to Ghostscript, allowing filenames starting with hyphens or '@' to be interpreted as command-line options.

Affected systems

Pillow 2.6.0 through versions prior to 13.0.0

CVSS v4.0 · 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

Fix & remediation

Upgrade Pillow to version 13.0.0 or later. If patching immediately is not possible, disable EPS handling or validate and reject EPS filenames starting with '-' or '@'.

shell
$ pip install --upgrade 'pillow>=13.0.0'

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

Ad · In-content banner

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-112900

Ad · Sticky 320×50 / 728×90