CVE-2026-55798

Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path

MEDIUM
4.5
CVSS Score
Published: July 6, 2026 at 06:44 PM UTC
Updated: October 25, 2026 at 08:10 PM UTC
2 products affected across 2 vendorsPillowPillow

Using Pillow by python-pillow?

Get instant alerts when new vulnerabilities affect Pillow - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.5
Exploit prediction
EPSS 0.2%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 12.3.0
Affected range stops below 12.3.0, so it looks safe — our inference, not a vendor statement
v < 12.3.0
Affected range stops below 12.3.0, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.5MEDIUMGitHub_M
Attack Vector
LOCAL
Complexity
HIGH
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-78

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card