Command Injection Affecting pillow package, versions [,12.3.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PILLOW-17824467
  • published6 Jul 2026
  • disclosed6 Jul 2026
  • creditsakura 1121984919

Introduced: 6 Jul 2026

CVE-2026-55798  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade pillow to version 12.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the get_command function. An attacker can execute arbitrary commands by supplying a file path containing shell metacharacters.

CVSS Base Scores

version 4.0
version 3.1