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.
Fix
Public exploits 3
- kavin-jindal/CVE-2026-112900-PoC PoC on GitHub
- moprius/CVE-2026-112900-Pillow-PoC PoC on GitHub
- techupdate24/python-pillow-rce-cve-2026-112900 PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9 Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-w889-685w-c8fh Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
In the news 1
Change history 8
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-27 14:55
- StatusPublished → AnalyzedNVD modified 2026-10-27 14:55
- StatusUndergoing Analysis → PublishedNVD modified 2026-10-20 14:43
- StatusPublished → Undergoing AnalysisNVD modified 2026-10-20 19:50
- StatusReceived → PublishedNVD modified 2026-10-20 14:43
- StatusPublished → ReceivedNVD modified 2026-10-20 15:17
- StatusReceived → PublishedNVD modified 2026-10-19 22:07
- First seenCVSS 9.2NVD modified 2026-10-19 22:17
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
References 3
- https://github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9 Patch
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-w889-685w-c8fh Exploit, Mitigation, Vendor Advisory