CVE Explorer
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 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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Pillow","vendor":"python-pillow","versions":[{"status":"affected","version":"< 12.3.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/problemTypes/0/descriptions/0
Source references
6 source assertions{"name":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst","tags":["x_refsource_MISC"],"url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/references/4
{"name":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a","tags":["x_refsource_MISC"],"url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/references/1
{"name":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4","tags":["x_refsource_MISC"],"url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/references/2
{"name":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f","tags":["x_refsource_MISC"],"url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/references/3
{"name":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:56c811a9be55f4d7989c8e4e03f70856d3ead76e566b51be1084d0e618aef88d · sha256:59c319cbd4650f7b… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.