Python-pillow Pillow
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.6.0, < 13.0.0
Fixed in 13.0.0
Mitigation
Upgrade Pillow to 13.0.0 or later.
References
- Vendor advisory github.com/python-pillow/Pillow/security/advis…
- Patch github.com/python-pillow/Pillow/commit/a2c3631…
- Release notes github.com/python-pillow/Pillow/releases/tag/1…
Timeline
Days relative to CVE publicationFirst public PoC 5.1 days after publication; not in CISA KEV. First PoC: moprius/CVE-2026-112900-Pillow-PoC (created 25 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.3 PoCs · 1 pending · 1 informational
PoCs 3
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| moprius/CVE-2026-112900-Pillow-PoC | 25 Oct 2026 +5.1 d | 14 Nov 2026 | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| kavin-jindal/CVE-2026-112900 | 25 Oct 2026 +5.7 d | 14 Nov 2026 | 2 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| kavin-jindal/CVE-2026-112900-PoC | 25 Oct 2026 +5.7 d | 14 Nov 2026 | 2 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Pending 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| federiconbaez/cortex9-pillow-ghostscript-argv-injection-model | 9 Nov 2026 +21 d | 14 Nov 2026 | 0 | Pending |
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| techupdate24/python-pillow-rce-cve-2026-112900 | 23 Oct 2026 +3.6 d | 14 Nov 2026 | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.