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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55798.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "12.3.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "88194166691b7b603529b8b036ab3ab9cedd2de4"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}