Vulnocalypse
Back to feed
18impact

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

python-pillow Pillow · CVE-2026-55798
0 news outlets0 CERTs and agencies0 researchers

What is it?

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.

Evidence

No coverage recorded yet.

Exploitation

  • Public proof of concept
  • Exploited in the wild
  • Listed as known exploited
CVSS
4.5
EPSS
0.2%
First seen
1 d ago
Status
corroborated

All python-pillow vulnerabilities