OS Command Injection in Pillow - CVE-2026-55798

 

OS Command Injection in Pillow - CVE-2026-55798

Published: July 3, 2026


Vulnerability identifier: #VU136861
CSH Severity: Medium
CVSS v4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-55798
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands.

The vulnerability exists due to command injection in WindowsViewer.get_command() in src/PIL/ImageShow.py when processing a file path in a shell command. A remote attacker can supply a specially crafted file path containing shell metacharacters to execute arbitrary commands.

User interaction is required to open a crafted file path on a Windows system.


Affected software

Pillow
Fedora
python-pillow

How to mitigate CVE-2026-55798

Install security update from vendor's website.

Pillow - update to 12.3.0
python-pillow - addressed in versions 11.3.0-9.fc43, 11.3.0-10.fc43, 12.3.0-1.fc44

External References

Related Security Bulletins