{"id":"CVE-2026-112900","published":"2026-10-19T22:07:50Z","modified":"2026-10-20T14:43:44Z","title":"Pillow: Argument Injection in Ghostscript call, potentially leading into RCE","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01303,"percentile":0.70551,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-w889-685w-c8fh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":25.6,"factors":[{"name":"EPSS percentile","points":14.11},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":3,"skipped":1,"earliest":"2026-10-23","earliestUrl":"https://github.com/techupdate24/python-pillow-rce-cve-2026-112900","repos":[{"name":"kavin-jindal/CVE-2026-112900-PoC","url":"https://github.com/kavin-jindal/CVE-2026-112900-PoC","stars":2,"created":"2026-10-25"},{"name":"techupdate24/python-pillow-rce-cve-2026-112900","url":"https://github.com/techupdate24/python-pillow-rce-cve-2026-112900","stars":0,"created":"2026-10-23"},{"name":"federiconbaez/cortex9-pillow-ghostscript-argv-injection-model","url":"https://github.com/federiconbaez/cortex9-pillow-ghostscript-argv-injection-model","stars":0,"created":"2026-11-09"}]},"first":{"date":"2026-10-23","source":"PoC-in-GitHub","url":"https://github.com/techupdate24/python-pillow-rce-cve-2026-112900"},"provenance":"source"},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 2.6.0, < 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-20T14:43:22.235143Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=2.6.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-w889-685w-c8fh"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-104661","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-pillow-pillow-cve-2026-112900","children":[{"from":"CVE-2026-112900","to":"CVE-2026-112899","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PIL/EpsImagePlugin.py"],"commits":["https://github.com/python-pillow/Pillow/commit/3e8cc105588d1dfe062fcada0b6058c1b5f14b65","https://github.com/python-pillow/Pillow/commit/a2c363141da31a265dd536c945677db4b64f3ec9"],"basis":"shared function","functions":["Ghostscript"]}]}]}}