# CVE-2026-55798: Pillow: WindowsViewer.get\_command() OS command injection via unescaped shell path

- Priority: **Routine**
- Reason: Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-06 · Modified: 2026-07-07
- Aliases: GHSA-4x4j-2g7c-83w6, BIT-pillow-2026-55798, PYSEC-2026-2257, UBUNTU-CVE-2026-55798, CGA-32gf-42c2-9v56, CGA-3hw7-8v9j-mcvw, CGA-4p3v-f7r7-hqv2, CGA-79wr-whvf-mqmg, CGA-cq2x-xm6p-hhqv, CGA-cvjq-23pj-pc53, CGA-fmf6-wx4q-5xjj, CGA-g37x-8vh3-63q8, CGA-g4vx-cp23-p828, CGA-h33p-xv5g-77xh, CGA-hhqh-h2mx-7w22, CGA-mgv2-959c-59fq, CGA-pr9g-rr9g-pwfr, CGA-qjw9-7fwp-x556, CGA-r74f-h9m5-45v2, CGA-4gr7-w2qv-rp57, CGA-4j7p-hm9w-8x6r, CGA-7xx5-rf4p-x357, CGA-8wvx-47vq-8927, CGA-9gcp-v494-c759, CGA-9xm6-prh8-m7h4, CGA-f2vv-2mvc-c98x, CGA-fr5f-qqxc-68h5, CGA-gg3h-3xgx-8cr7, CGA-j5c4-5f2h-69h8, CGA-rfv3-qw23-8vfg, CGA-rr3v-vvh9-cpc6, CGA-whw3-vx9p-6xq6, CGA-wv62-9fjj-j86f, CGA-wx22-m5r6-7rrx, CGA-xw95-ccp7-769p, ALPINE-CVE-2026-55798
- Record: https://cvemate.com/vulnerability/CVE-2026-55798 · JSON: https://cvemate.com/vulnerability/CVE-2026-55798/json

## Description

```text
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.
```

## Signals

- CVSS: 4.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- EPSS: 0.197%, percentile 9.877%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 26)

- alpine py3-pillow (Alpine Linux): \< 12.3.0-r0
- chainguard label-studio (Chainguard): \< 1.23.0-r11
- chainguard lmcache-cuda-12.8 (Chainguard): \< 0.5.3-r0
- chainguard mlflow (Chainguard): \< 3.14.0-r2 \| \< 3.16.0-r0
- chainguard open-webui (Chainguard): \< 0.10.2-r1 \| \< 0.11.0-r0 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): \< 25.5.2\_git20260617-r4
- chainguard openstack-horizon-2025.2-fips (Chainguard): \< 25.5.2\_git20260617-r5
- chainguard openstack-horizon-2026.1 (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard openstack-horizon-2026.1-fips (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard superset-6.0 (Chainguard): \< 6.0.0-r13
- chainguard superset-6.1 (Chainguard): \< 6.1.0-r6
- chainguard superset-6.1-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard superset-fips-6.1 (Chainguard): \< 6.1.0-r5
- chainguard tensorflow-gpu-jupyter (Chainguard): \< 2.21.0-r7
- chainguard text-generation-inference (Chainguard): \< 3.3.7-r20
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r11
- wolfi mlflow (Wolfi): \< 3.14.0-r2 \| \< 3.16.0-r0
- wolfi open-webui (Wolfi): \< 0.10.2-r1 \| \< 0.11.0-r0 \| All versions (No fix recorded)
- wolfi superset-6.0 (Wolfi): \< 6.0.0-r13
- wolfi superset-6.1 (Wolfi): \< 6.1.0-r6

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6>
- <https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a>
- <https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4>
- <https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f>
- <https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55798>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2257.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://ubuntu.com/security/CVE-2026-55798>
- <https://www.cve.org/CVERecord?id=CVE-2026-55798>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55798.json>
- <https://security.alpinelinux.org/vuln/CVE-2026-55798>

---

Data as of 2026-12-05T04:22:51.361Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
