CVE-2026-112397 Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
HighCVSS 8.7
EPSS 0.57%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pillow(PyPI) | < 13.0.0 | 13.0.0 |
| pypi pillow(PyPI) | = 1.0 | No fix listed |
| pypi pillow(PyPI) | = 1.1 | No fix listed |
| pypi pillow(PyPI) | = 1.2 | No fix listed |
| pypi pillow(PyPI) | = 1.3 | No fix listed |
| pypi pillow(PyPI) | = 1.4 | No fix listed |
| pypi pillow(PyPI) | = 1.5 | No fix listed |
| pypi pillow(PyPI) | = 1.6 | No fix listed |
| pypi pillow(PyPI) | = 1.7.0 | No fix listed |
| pypi pillow(PyPI) | = 1.7.1 | No fix listed |
| pypi pillow(PyPI) | = 1.7.2 | No fix listed |
| pypi pillow(PyPI) | = 1.7.3 | No fix listed |
| pypi pillow(PyPI) | = 1.7.4 | No fix listed |
| pypi pillow(PyPI) | = 1.7.5 | No fix listed |
| pypi pillow(PyPI) | = 1.7.6 | No fix listed |
| pypi pillow(PyPI) | = 1.7.7 | No fix listed |
| pypi pillow(PyPI) | = 1.7.8 | No fix listed |
| pypi pillow(PyPI) | = 10.0.0 | No fix listed |
| pypi pillow(PyPI) | = 10.0.1 | No fix listed |
| pypi pillow(PyPI) | = 10.1.0 | No fix listed |
| pypi pillow(PyPI) | = 10.2.0 | No fix listed |
| pypi pillow(PyPI) | = 10.3.0 | No fix listed |
| pypi pillow(PyPI) | = 10.4.0 | No fix listed |
| pypi pillow(PyPI) | = 11.0.0 | No fix listed |
| pypi pillow(PyPI) | = 11.1.0 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pillow(PyPI) | = 11.2.1 | No fix listed |
| pypi pillow(PyPI) | = 11.3.0 | No fix listed |
| pypi pillow(PyPI) | = 12.0.0 | No fix listed |
| pypi pillow(PyPI) | = 12.1.0 | No fix listed |
| pypi pillow(PyPI) | = 12.1.1 | No fix listed |
| pypi pillow(PyPI) | = 12.2.0 | No fix listed |
| pypi pillow(PyPI) | = 12.3.0 | No fix listed |
| pypi pillow(PyPI) | = 2.0.0 | No fix listed |
| pypi pillow(PyPI) | = 2.1.0 | No fix listed |
| pypi pillow(PyPI) | = 2.2.0 | No fix listed |
| pypi pillow(PyPI) | = 2.2.1 | No fix listed |
| pypi pillow(PyPI) | = 2.2.2 | No fix listed |
| pypi pillow(PyPI) | = 2.3.0 | No fix listed |
| pypi pillow(PyPI) | = 2.3.1 | No fix listed |
| pypi pillow(PyPI) | = 2.3.2 | No fix listed |
| pypi pillow(PyPI) | = 2.4.0 | No fix listed |
| pypi pillow(PyPI) | = 2.5.0 | No fix listed |
| pypi pillow(PyPI) | = 2.5.1 | No fix listed |
| pypi pillow(PyPI) | = 2.5.2 | No fix listed |
| pypi pillow(PyPI) | = 2.5.3 | No fix listed |
| pypi pillow(PyPI) | = 2.6.0 | No fix listed |
| pypi pillow(PyPI) | = 2.6.1 | No fix listed |
| pypi pillow(PyPI) | = 2.6.2 | No fix listed |
| pypi pillow(PyPI) | = 2.7.0 | No fix listed |
| pypi pillow(PyPI) | = 2.8.0 | No fix listed |
| pypi pillow(PyPI) | = 2.8.1 | No fix listed |
| pypi pillow(PyPI) | = 2.8.2 | No fix listed |
| pypi pillow(PyPI) | = 2.9.0 | No fix listed |
| pypi pillow(PyPI) | = 3.0.0 | No fix listed |
| pypi pillow(PyPI) | = 3.1.0 | No fix listed |
| pypi pillow(PyPI) | = 3.1.0.rc1 | No fix listed |
| pypi pillow(PyPI) | = 3.1.0rc1 | No fix listed |
| pypi pillow(PyPI) | = 3.1.1 | No fix listed |
| pypi pillow(PyPI) | = 3.1.2 | No fix listed |
| pypi pillow(PyPI) | = 3.2.0 | No fix listed |
| pypi pillow(PyPI) | = 3.3.0 | No fix listed |
| pypi pillow(PyPI) | = 3.3.1 | No fix listed |
| pypi pillow(PyPI) | = 3.3.2 | No fix listed |
| pypi pillow(PyPI) | = 3.3.3 | No fix listed |
| pypi pillow(PyPI) | = 3.4.0 | No fix listed |
| pypi pillow(PyPI) | = 3.4.1 | No fix listed |
| pypi pillow(PyPI) | = 3.4.2 | No fix listed |
| pypi pillow(PyPI) | = 4.0.0 | No fix listed |
| pypi pillow(PyPI) | = 4.1.0 | No fix listed |
| pypi pillow(PyPI) | = 4.1.1 | No fix listed |
| pypi pillow(PyPI) | = 4.2.0 | No fix listed |
| pypi pillow(PyPI) | = 4.2.1 | No fix listed |
| pypi pillow(PyPI) | = 4.3.0 | No fix listed |
| pypi pillow(PyPI) | = 5.0.0 | No fix listed |
| pypi pillow(PyPI) | = 5.1.0 | No fix listed |
| pypi pillow(PyPI) | = 5.2.0 | No fix listed |
| pypi pillow(PyPI) | = 5.3.0 | No fix listed |
| pypi pillow(PyPI) | = 5.4.0 | No fix listed |
| pypi pillow(PyPI) | = 5.4.0.dev0 | No fix listed |
| pypi pillow(PyPI) | = 5.4.1 | No fix listed |
| pypi pillow(PyPI) | = 6.0.0 | No fix listed |
| pypi pillow(PyPI) | = 6.1.0 | No fix listed |
| pypi pillow(PyPI) | = 6.2.0 | No fix listed |
| pypi pillow(PyPI) | = 6.2.1 | No fix listed |
| pypi pillow(PyPI) | = 6.2.2 | No fix listed |
| pypi pillow(PyPI) | = 7.0.0 | No fix listed |
| pypi pillow(PyPI) | = 7.1.0 | No fix listed |
| pypi pillow(PyPI) | = 7.1.1 | No fix listed |
| pypi pillow(PyPI) | = 7.1.2 | No fix listed |
| pypi pillow(PyPI) | = 7.2.0 | No fix listed |
| pypi pillow(PyPI) | = 8.0.0 | No fix listed |
| pypi pillow(PyPI) | = 8.0.1 | No fix listed |
| pypi pillow(PyPI) | = 8.1.0 | No fix listed |
| pypi pillow(PyPI) | = 8.1.1 | No fix listed |
| pypi pillow(PyPI) | = 8.1.2 | No fix listed |
| pypi pillow(PyPI) | = 8.2.0 | No fix listed |
| pypi pillow(PyPI) | = 8.3.0 | No fix listed |
| pypi pillow(PyPI) | = 8.3.1 | No fix listed |
| pypi pillow(PyPI) | = 8.3.2 | No fix listed |
| pypi pillow(PyPI) | = 8.4.0 | No fix listed |
| pypi pillow(PyPI) | = 9.0.0 | No fix listed |
| pypi pillow(PyPI) | = 9.0.1 | No fix listed |
| pypi pillow(PyPI) | = 9.1.0 | No fix listed |
| pypi pillow(PyPI) | = 9.1.1 | No fix listed |
| pypi pillow(PyPI) | = 9.2.0 | No fix listed |
| pypi pillow(PyPI) | = 9.3.0 | No fix listed |
| pypi pillow(PyPI) | = 9.4.0 | No fix listed |
| pypi pillow(PyPI) | = 9.5.0 | No fix listed |
| redhat/python-pillow(Red Hat:enterprise_linux:8) | < 5.1.1-33.el8_10 | 5.1.1-33.el8_10 |
| redhat/python-pillow(Red Hat:rhel_aus:8.4) | < 5.1.1-15.el8_4.3 | 5.1.1-15.el8_4.3 |
| redhat/python-pillow(Red Hat:rhel_eus_long_life:8.4) | < 5.1.1-15.el8_4.3 | 5.1.1-15.el8_4.3 |
| redhat/python-pillow(Red Hat:rhel_aus:8.6) | < 5.1.1-20.el8_6.2 | 5.1.1-20.el8_6.2 |
| redhat/python-pillow(Red Hat:rhel_eus_long_life:8.6) | < 5.1.1-20.el8_6.2 | 5.1.1-20.el8_6.2 |
| redhat/python-pillow(Red Hat:rhel_tus:8.8) | < 5.1.1-20.el8_8.2 | 5.1.1-20.el8_8.2 |
| redhat/python-pillow(Red Hat:rhel_e4s:8.8) | < 5.1.1-20.el8_8.2 | 5.1.1-20.el8_8.2 |
| redhat/python-pillow(Red Hat:satellite:6.16::el8) | < 13.0.0-1.el8pc | 13.0.0-1.el8pc |
| redhat/python-pyyaml(Red Hat:satellite:6.16::el8) | < 6.0.1-1.el8pc | 6.0.1-1.el8pc |
| redhat/python-pillow(Red Hat:satellite_capsule:6.16::el8) | < 13.0.0-1.el8pc | 13.0.0-1.el8pc |
| redhat/python-pyyaml(Red Hat:satellite_capsule:6.16::el8) | < 6.0.1-1.el8pc | 6.0.1-1.el8pc |
| redhat/python-pillow(Red Hat:satellite:6.16::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python-pyyaml(Red Hat:satellite:6.16::el9) | < 6.0.1-1.el9pc | 6.0.1-1.el9pc |
| redhat/python-pillow(Red Hat:satellite_capsule:6.16::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python-pyyaml(Red Hat:satellite_capsule:6.16::el9) | < 6.0.1-1.el9pc | 6.0.1-1.el9pc |
| redhat/python-pillow(Red Hat:satellite:6.17::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python-pillow(Red Hat:satellite_capsule:6.17::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python3.12-pillow(Red Hat:satellite:6.18::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python3.12-pillow(Red Hat:satellite_capsule:6.18::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python3.12-pillow(Red Hat:satellite:6.19::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/python3.12-pillow(Red Hat:satellite_capsule:6.19::el9) | < 13.0.0-1.el9pc | 13.0.0-1.el9pc |
| redhat/rhaii/vllm-cpu-rhel9:1793444554(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-rocm-rhel9:1793444456(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/model-opt-cuda-rhel9:1793444339(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-spyre-rhel9:1793444409(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-gaudi-rhel9:1793444510(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhaii/vllm-cuda-rhel9:1793444600(Red Hat:ai_inference_server:3.5::el9) | All versions | No fix listed |
| redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1792890022(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-training-rocm64-torch29-py312-rhel9:1792890009(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhai/guidellm-rhel9:1793719302(Red Hat:openshift_ai:3.5::el9) | All versions | No fix listed |
| redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:2) | All versions | No fix listed |
| redhat/rhaiis/model-opt-cuda-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-cuda-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-rocm-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-spyre-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaii/vllm-neuron-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaii/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.12-pillow(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/lightspeed-services-ocp/ocp-rules-rhel9(Red Hat:lightspeed_services_ocp:0) | All versions | No fix listed |
| redhat/rhai-early-access/docling-sdk-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-automl-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-autorag-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-caikit-tgis-serving-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-autogluon-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-llm-d-kv-cache-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-ogx-core-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-openvino-model-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th-torch-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th-torch-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th-torch-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-58r4-6rv3-gfh8 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/python-pillow/Pillow/commit/18f7c0dfee93063c51db6ed0ca8c4da2999dcb64 patch
- github.com product
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 release-notes vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:92639 patch vendor-advisory
- RHSA-2026:98120 patch vendor-advisory
- RHSA-2026:98111 patch vendor-advisory
- RHSA-2026:98109 patch vendor-advisory
- RHSA-2026:95655 patch vendor-advisory
- RHSA-2026:95656 patch vendor-advisory
- RHSA-2026:95657 patch vendor-advisory
- RHSA-2026:92861 patch vendor-advisory
- RHSA-2026:94702 patch vendor-advisory
- RHSA-2026:94709 patch vendor-advisory
- RHSA-2026:94715 patch vendor-advisory
- RHSA-2026:94717 patch vendor-advisory
- RHSA-2026:94721 patch vendor-advisory
- RHSA-2026:94738 patch vendor-advisory
- RHSA-2026:92510 patch vendor-advisory
- RHSA-2026:94631 patch vendor-advisory
- Red Hat Bugzilla 2555868 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-112397 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-9064-1: Pillow vulnerabilities vendor-advisory
- USN-9064-2: Pillow regression vendor-advisory