CVSS 3.1
4.5 mediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LMedium (4.5) in python pillow. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.3.0.
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:Lpillow (PyPI): fixed in 12.3.0Explain CVE-2026-55798 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-55798?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-55798?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-55798 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:pillow | before 12.3.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-4x4j-2g7c-83w6 | PyPI | pillow | <12.3.0 | 12.3.0 |
| PYSEC-2026-2257 | PyPI | pillow | <12.3.0 | 12.3.0 |
Red Hat rates this Moderate.
A flaw was found in Pillow, a Python imaging library. The WindowsViewer.get_command() method constructs a cmd.exe shell command by directly embedding a file path into an f-string without applying shlex.quote() or equivalent escaping. This string is then passed to subprocess.Popen with shell=True, allowing shell metacharacters in the file path to inject and execute arbitrary cmd.exe commands. The vulnerability is specific to the Windows platform; the Linux (UnixViewer) and macOS (MacViewer) equivalents already apply proper shell quoting.
This vulnerability is specific to the WindowsViewer class in Pillow, which is only invoked on Windows systems. Red Hat products ship and run on Linux, where the UnixViewer class is used instead, which properly applies shlex.quote() to file paths. The vulnerable Windows code path is not reachable on Red Hat's supported platforms. Users can upgrade to Pillow 12.3.0 or later, which adds proper escaping to the Windows code path.
| Product | Package | State | Advisory |
|---|---|---|---|
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Not affected | |
| Lightspeed Core | lightspeed-core/lightspeed-stack-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/model-opt-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/model-opt-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-neuron-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-rocm-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-spyre-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/vllm-tpu-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-cpu-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-cuda-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-gaudi-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-neuron-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-rocm-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-spyre-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaii/vllm-tpu-rhel9 | Not affected | |
| 59 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-55798.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.