4.5

CVE-2026-55798: Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path

Analyzed
AliasesGHSA-4x4j-2g7c-83w6BIT-pillow-2026-55798PYSEC-2026-2257
Published 06-07-2026Last modified 07-07-2026

Vulnerability summary

CVE-2026-55798 is a medium (CVSS 4.5) vulnerability in python-pillow pillow. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.20%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 06-07-2026
    PublishedVulnerability first disclosed.
  2. 07-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.20%

Chance of exploitation in the next 30 days

Percentile

10%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.18% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Pillow

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard15 products
  • label-studio< 1.23.0-r11
  • lmcache-cuda-12.8< 0.5.3-r0
  • mlflow< 3.14.0-r2 | < 3.16.0-r0
  • open-webui< 0.10.2-r1 | < 0.11.0-r0 | All versions (No fix recorded)
  • openstack-horizon-2025.2< 25.5.2_git20260617-r4
Wolfi5 products
  • mlflow< 3.14.0-r2 | < 3.16.0-r0
  • open-webui< 0.10.2-r1 | < 0.11.0-r0 | All versions (No fix recorded)
  • superset-6.0< 6.0.0-r13
  • superset-6.1< 6.1.0-r6
  • superset-6.1-iamguarded-compatAll versions (No fix recorded)
Ubuntu2 products
  • pillowAll versions (No fix recorded)
  • pillow-python2All versions (No fix recorded)
Alpine1 product
  • py3-pillow< 12.3.0-r0
PyPI1 product
  • pillow< 12.3.0
Python1 product
Python-pillow1 product

7 vendors · 26 products

References

12 links
Show all 12 references