Argument injection in Pillow - CVE-2026-112900

 

Argument injection in Pillow - CVE-2026-112900

Published: November 3, 2026


Vulnerability identifier: #VU158907
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-112900
CWE-ID: CWE-88
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to inject Ghostscript command-line arguments and potentially execute arbitrary operating system commands.

The vulnerability exists due to improper neutralization of filename-derived command-line arguments in Pillow's PIL.EpsImagePlugin.Ghostscript() function when rendering EPS images with attacker-controlled filenames. A remote attacker can supply a filename beginning with - or -- to inject an option, or use a filename such as @arg to load additional arguments from a referenced file and execute arbitrary operating system commands if that file is also attacker-controlled.

The issue is reproducible with Pillow's default Ghostscript invocation, including when -dSAFER is enabled.


Affected software

Pillow
Fedora
python-pillow

How to mitigate CVE-2026-112900

Install security update from vendor's website.

Pillow - update to 13.0.0
python-pillow - update to 11.3.0-14.fc43

External References

Related Security Bulletins