Pillow EPS image processing Ghostscript argument injection
CVE-2026-112900Critical
Pillow's EPS image plugin passes user-controlled filenames to Ghostscript without proper sanitisation, allowing filenames starting with a hyphen to be interpreted as Ghostscript options. An attacker who controls the filename can inject arbitrary Ghostscript arguments. To achieve arbitrary command execution, the attacker needs a filename beginning with @ that references a text file containing malicious Ghostscript arguments, which works even with Ghostscript's default -dSAFER security setting.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
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
Detail
Affected versions
- python pillow: from 2.6.0, before 13.0.0