CVE-2026-55798
Published:July 06, 2026
Updated:July 21, 2026
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 Packages
pillow (CONDA):
Affected version(s) >=2.1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (CONDA):
Affected version(s) >=2.1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0https://github.com/python-pillow/Pillow.git (GITHUB):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (PYTHON):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (PYTHON):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
2
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.5
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.14