
CVE catalog
CVE-2026-55798
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
- Severity
- Medium · CVSS 4.5
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pillow | sid | 13.0.0-1 | not affected |
| Debian | pillow | forky | 12.3.0-1 | not affected |
| Debian | pillow | trixie | 11.1.0-5+deb13u4 | not affected |
| Debian | pillow | trixie-security | 11.1.0-5+deb13u3 | not affected |
| Debian | pillow | bookworm | 9.4.0-1.1+deb12u1 | not affected |
| Debian | pillow | bookworm-security | 9.4.0-1.1+deb12u1 | not affected |
| Cpe | pillow | Not reported | 12.3.0 | fixed |
| Pip | Pillow | Not reported | 12.3.0 | fixed |
| PyPI | pillow | Not reported | 12.3.0 | fixed |
| Cpe | pillow | Not reported | 12.3.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pillow | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | pillow | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | pillow | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | pillow | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Cpe | pillow | cpe | Not reported | 12.3.0 | Not reported | Not reported | Not reported |
| Pip | Pillow | pip | Not reported | 12.3.0 | Not reported | Not reported | Not reported |
| PyPI | pillow | PyPI | Not reported | 12.3.0 | Not reported | GHSA-4X4J-2G7C-83W6 | Not reported |
| Cpe | pillow | cpe | Not reported | 12.3.0 | Not reported | NVD-CVE-2026-55798 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pil]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· amd64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
- [python3-pil.imagetk]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· amd64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· arm64 · bookworm-securityNot affected
nvd · pillow · debian · bookworm
- [python-pil-doc]Not affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· all · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookwormNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookworm-securityNot affected
nvd · pillow · debian · bookworm
9.4.0-1.1+deb12u1· all · bookworm-securityNot affected
nvd · pillow · debian · bookworm
Observed:
References
- [https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst]
- [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/security/advisories/GHSA-4x4j-2g7c-83w6]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-55798]
- [https://osv.dev/vulnerability/GHSA-4x4j-2g7c-83w6]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-55798]
- [https://security-tracker.debian.org/tracker/CVE-2026-55798]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55798.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]