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.
CVE-2026-55798
This medium-severity CVE scores 4.5 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 97% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.5
- EG Score
- 4.5(medium)
- EPSS
- 3.5%
- KEV
- Not listed
Published
July 6, 2026
Last Modified
July 7, 2026
Advisory Details (5)
Auto-updated Jul 7, 2026WindowsViewer.get_command() OS command injection via unescaped shell path (CWE-78) · Advisory · python-pillow/Pillow · GitHub
https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6commit b0e06caa64c1 (python-pillow/Pillow)
Patch available: python-pillow/Pillow 12.3.0 (contains commit b0e06caa64c1)
https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7fcommit 88194166691b (python-pillow/Pillow)
Patch available: python-pillow/Pillow 12.3.0 (contains commit 88194166691b)
https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4commit 8404ea5fe5df (python-pillow/Pillow)
Patch available: python-pillow/Pillow 12.3.0 (contains commit 8404ea5fe5df)
https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8aPillow/docs/releasenotes/12.3.0.rst at main · python-pillow/Pillow · GitHub
https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rstWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 18× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 07:45 UTCEG score recompute
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 06:07 UTCEG score recompute
- 2026-07-13 22:31 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 04:32 UTCEG score recompute
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 02:58 UTCEG score recompute
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 01:24 UTCEG score recompute
- 2026-07-09 23:50 UTCEG score recompute
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 22:16 UTCEG score recompute
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-07 20:42 UTCEG score recompute
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 19:07 UTCEG score recompute
Show 1 moreShow fewer
- 2026-07-06 19:06 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-78
Frequently asked(5)
What is CVE-2026-55798?
When was CVE-2026-55798 disclosed?
Is CVE-2026-55798 actively exploited?
What is the CVSS score of CVE-2026-55798?
How do I remediate CVE-2026-55798?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-55798
Is Your Infrastructure Affected by CVE-2026-55798?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.