cve.bz

CVE-2026-112900 python pillow: OS Command Injection

9.2 criticalExploit referenceEPSS 1.3%Fix available

Critical (9.2) in python pillow. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 13.0.0.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-112900 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112900?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112900?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112900 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowfrom 2.6.0 before 13.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w889-685w-c8fhPyPIpillow>=2.6.0 <13.0.013.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pillowno fix listedDEBIAN-CVE-2026-112900
Debian14pillow13.0.0-1DEBIAN-CVE-2026-112900
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.7UBUNTU-CVE-2026-112900 USN-9064-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.5UBUNTU-CVE-2026-112900 USN-9064-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.5UBUNTU-CVE-2026-112900 USN-9064-1
Ubuntu26.10pillow12.3.0-1ubuntu2UBUNTU-CVE-2026-112900 USN-9064-1
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm6USN-9064-1
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm4UBUNTU-CVE-2026-112900 USN-9064-1
UbuntuPro:18.04:LTSpillow5.1.0-1ubuntu0.8+esm3UBUNTU-CVE-2026-112900 USN-9064-1
UbuntuPro:20.04:LTSpillow7.0.0-4ubuntu0.9+esm2UBUNTU-CVE-2026-112900 USN-9064-1
UbuntuPro:20.04:LTSpillow-python2no fix listedUBUNTU-CVE-2026-112900
Red Hatenterprise_linux:8::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-36.el8_10RHSA-2026:93077
Red Hatenterprise_linux:8::crbpython3-pillow, python3-pillow-tk, python3-pillow-doc and 5 more0:5.1.1-36.el8_10RHSA-2026:93077
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-15.el8_4.3RHSA-2026:98120
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-20.el8_6.2RHSA-2026:98111
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-20.el8_8.2RHSA-2026:98109
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-Pillow9.5.0-150400.5.28.1SUSE-SU-2026:5194-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.33.1SUSE-SU-2026:5038-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.9.1SUSE-SU-2026:24656-1
SUSELinux Enterprise Server for NVIDIA 16.1python-Pillow11.3.0-160100.3.1SUSE-SU-2026:24701-1
openSUSELeap 16.0python-Pillow11.3.0-160000.9.1openSUSE-SU-2026:22246-1
openSUSELeap 16.1python-Pillow11.3.0-160100.3.1openSUSE-SU-2026:22301-1
openSUSETumbleweedpython-Pillow13.0.0-1.1openSUSE-SU-2026:12230-1
AlmaLinux8python3-pillow, python3-pillow-tk, python3-pillow-doc and 1 more5.1.1-36.el8_10ALSA-2026:93077
Rocky Linux8python-pillow0:5.1.1-36.el8_10RLSA-2026:93077

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated Critical because an attacker capable of supplying an unvalidated filename to image handling services can achieve arbitrary remote code execution via argument injection into Ghostscript. In Red Hat environments, exploitation requires the host application to process Encapsulated PostScript files, have the optional Ghostscript package installed, and allow an attacker to place an auxiliary argument file on the target system. Workloads that do not accept untrusted filenames or that run in environments without the external Ghostscript binary are not susceptible to this attack vector.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python-pillow-0:5.1.1-36.el8_10Fixed 2026-10-30RHSA-2026:93077
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython-pillow-0:5.1.1-15.el8_4.3Fixed 2026-11-11RHSA-2026:98120
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpython-pillow-0:5.1.1-15.el8_4.3Fixed 2026-11-11RHSA-2026:98120
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython-pillow-0:5.1.1-20.el8_6.2Fixed 2026-11-11RHSA-2026:98111
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onpython-pillow-0:5.1.1-20.el8_6.2Fixed 2026-11-11RHSA-2026:98111
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepython-pillow-0:5.1.1-20.el8_8.2Fixed 2026-11-11RHSA-2026:98109
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspython-pillow-0:5.1.1-20.el8_8.2Fixed 2026-11-11RHSA-2026:98109
Red Hat AI Inference Server 3.5rhaii/vllm-cpu-rhel9:1793444554Fixed 2026-11-03RHSA-2026:94702
Red Hat AI Inference Server 3.5rhaii/vllm-rocm-rhel9:1793444456Fixed 2026-11-03RHSA-2026:94709
Red Hat AI Inference Server 3.5rhaii/model-opt-cuda-rhel9:1793444339Fixed 2026-11-03RHSA-2026:94715
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/model-opt-cuda-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-cpu-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-cuda-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-gaudi-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-neuron-rhel9Will not fix
Red Hat AI Inference Serverrhaii-fast/vllm-omni-cuda-rhel9Will not fix
Red Hat AI Inference Serverrhaii-fast/vllm-rocm-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-spyre-rhel9Affected
Red Hat AI Inference Serverrhaii-fast/vllm-tpu-rhel9Will not fix
67 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112900.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON