CVE-2026-55798: python-pillow pillow OS Command Injection
Vulnerability summary
CVE-2026-55798 is a medium (CVSS 4.5) OS Command Injection vulnerability in python-pillow pillow. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 6.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 06-07-2026PublishedVulnerability first disclosed.
- 07-07-2026Last 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
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- OSV · UbuntuEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- NVDNIST4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
0.00 pp
From 0.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPillow
Maturity: poc
Weaknesses
CWE · root causeAffected systems
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)
PyPI1 product
- pillow< 12.3.0
Python1 product
- pillow< 12.3.0
Python-pillow1 product
- pillow< 12.3.0
6 vendors · 25 products
References
11 links- github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6X Refsource CONFIRMWEBEVIDENCEREPORTAdvisoryExploitVendor Advisory
- github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8aX Refsource MISCWEBFIXREPORTPatch
- github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4X Refsource MISCWEBFIXREPORTPatch
- github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7fX Refsource MISCWEBFIXREPORTPatch
- github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rstX Refsource MISCWEBAdvisoryREPORTRelease Notes