CVE-2026-55798
python-pillow: Pillow: Arbitrary command injection via shell metacharacters in file paths
Overview
Description
Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.
Source: OX vulnerability database
Severity
4.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Weakness: CWE-78
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | pillow | <12.3.0 | 12.3.0 |
| PyPI | pillow | <12.3.0 | 12.3.0 |
| Seal PyPI | pillow | >=10.0.1+sp0, <10.0.1+sp999>=7.2.0+sp0, <7.2.0+sp999>=9.3.0+sp0, <9.3.0+sp999>=9.5.0+sp0, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
| Seal PyPI | seal-pillow | >=10.0.1+sp1, <10.0.1+sp999>=7.2.0+sp1, <7.2.0+sp999>=9.3.0+sp1, <9.3.0+sp999>=9.5.0+sp1, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 23 fixes
alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| edge | py3-pillow | 12.3.0-r0 |
chainguard 1 release · 13 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| lmcache-cuda-12-8 | 0.5.3-r0 | |
| label-studio | 1.23.0-r11 | |
| tensorflow-gpu-jupyter | 2.21.0-r7 | |
| tritonserver-backend-vllm-cuda-13-0 | 25.11-r11 | |
| openstack-horizon-2025-2 | 25.5.2_git20260617-r4 |
7 more rows
minimos 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| vllm-cu129 +1 | 0.25.0-r0 | |
| label-studio | 1.23.1-r0 | |
| acapy-agent-1-3 | 1.3.4-r1 | |
| acapy-agent-1-6 | 1.6.1-r0 | |
| litellm-1-83 | 1.83.10-r0 | |
| mlflow | 3.14.0-r1 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| superset-6-0 | 6.0.0-r13 | |
| superset-6-1 | 6.1.0-r6 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-55798
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2257.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst
- github.com https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a
- github.com https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4
- github.com https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-55798
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-55798
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.