CVE-2026-55798Python Pillow
Medium 4.5
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 27
- CVSS 3.1
- 4.5
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 6, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Pillow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
| PyPI | pillow |
< 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
Per OSV / GitHub Advisories (GHSA-4x4j-2g7c-83w6, PYSEC-2026-2257). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 12.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Exploit Vendor Advisory