CVE-2026-112900
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | >= 2.6.0, < 13.0.0 | 13.0.0 |
Affected products
10cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: >=2.6.0,<13.0.0
- (no CPE)range: 2.6.0 to 13.0.0
- osv-coords8 versionspkg:bitnami/pillowpkg:rpm/almalinux/python3-pillowpkg:rpm/almalinux/python3-pillow-develpkg:rpm/almalinux/python3-pillow-docpkg:rpm/almalinux/python3-pillow-tkpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Tumbleweed
>= 2.6.0, < 13.0.0+ 7 more
- (no CPE)range: >= 2.6.0, < 13.0.0
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
- (no CPE)range: < 13.0.0-1.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9nvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-w889-685w-c8fhnvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-w889-685w-c8fhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112900ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
3- ⚡ Weekly Recap: This2Shell, That2Shell, Everything's an RCE? Rogue AI, Supply Chain Chaos and MoreThe Hacker News · Oct 26, 2026
- Critical Flaw in Python’s Popular Pillow Image Library Allows Code Execution via a Crafted ImageThe Hacker News · Oct 23, 2026
- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026