Skip to content

CVE-2026-112393 Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO

CriticalCVSS 9.2 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.

Upgrade path

118 packages: 30 fixed, 87 with no fix yet.

PackageAffectedFixed inStatus
debian/pillow(Debian 12) = 9.4.0-1.1; = 9.4.0-1.1+deb12u1; = 9.5.0-1; = 10.0.0-1 +21 more No fix listed No fix yet
debian/pillow(Debian 13) = 11.1.0-5; = 11.1.0-5+deb13u1; = 11.1.0-5+deb13u2; = 11.1.0-5+deb13u3 +11 more No fix listed No fix yet
redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/hub-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform/automation-dashboard-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat exploit_intelligence 0) All versions No fix listed No fix yet
redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 2) All versions No fix listed No fix yet
redhat/python-pillow(Red Hat rhel_els 7) All versions No fix listed No fix yet
redhat/quay/quay-rhel8(Red Hat quay 3) All versions No fix listed No fix yet
redhat/quay/quay-rhel9(Red Hat quay 3) All versions No fix listed No fix yet
redhat/rhai-early-access/docling-sdk-cuda-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhai-early-access/docling-serve-cuda-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhai/guidellm-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhaii-fast/model-opt-cuda-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-cpu-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-cuda-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-gaudi-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-neuron-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-omni-cuda-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-rocm-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/rhaii-fast/vllm-spyre-rhel9(Red Hat ai_inference_server 3) All versions No fix listed No fix yet

… and 88 more packages.

Affected products

ProductAffected versionsFixed in
pypi pillow(PyPI) >= 2.0.0, < 13.0.0 13.0.0
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
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
Show 175 more
ProductAffected versionsFixed in
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
python-pillow Pillow = >= 2.0.0, < 13.0.0 No fix listed
python pillow >= 2.0.0, < 13.0.0 13.0.0
ubuntu/pillow(Ubuntu:22.04) < 9.0.1-1ubuntu0.7 9.0.1-1ubuntu0.7
ubuntu/pillow(Ubuntu:24.04) < 10.2.0-1ubuntu1.5 10.2.0-1ubuntu1.5
ubuntu/pillow(Ubuntu:26.04) < 12.1.1-2ubuntu1.5 12.1.1-2ubuntu1.5
ubuntu/pillow(Ubuntu:26.10) < 12.3.0-1ubuntu2 12.3.0-1ubuntu2
debian/pillow(Debian:12) All versions No fix listed
debian/pillow(Debian:12) = 10.0.0-1 No fix listed
debian/pillow(Debian:12) = 10.1.0-1 No fix listed
debian/pillow(Debian:12) = 10.2.0-1 No fix listed
debian/pillow(Debian:12) = 10.3.0-1 No fix listed
debian/pillow(Debian:12) = 10.3.0-2 No fix listed
debian/pillow(Debian:12) = 10.4.0-1 No fix listed
debian/pillow(Debian:12) = 10.4.0-1.1 No fix listed
debian/pillow(Debian:12) = 11.1.0-1 No fix listed
debian/pillow(Debian:12) = 11.1.0-2 No fix listed
debian/pillow(Debian:12) = 11.1.0-3 No fix listed
debian/pillow(Debian:12) = 11.1.0-4 No fix listed
debian/pillow(Debian:12) = 11.1.0-5 No fix listed
debian/pillow(Debian:12) = 11.2.1-1 No fix listed
debian/pillow(Debian:12) = 11.3.0-1 No fix listed
debian/pillow(Debian:12) = 12.0.0-1 No fix listed
debian/pillow(Debian:12) = 12.1.0-1 No fix listed
debian/pillow(Debian:12) = 12.1.1-1 No fix listed
debian/pillow(Debian:12) = 12.1.1-2 No fix listed
debian/pillow(Debian:12) = 12.2.0-1 No fix listed
debian/pillow(Debian:12) = 12.3.0-1 No fix listed
debian/pillow(Debian:12) = 13.0.0-1 No fix listed
debian/pillow(Debian:12) = 9.4.0-1.1 No fix listed
debian/pillow(Debian:12) = 9.4.0-1.1+deb12u1 No fix listed
debian/pillow(Debian:12) = 9.5.0-1 No fix listed
debian/pillow(Debian:13) All versions No fix listed
debian/pillow(Debian:13) = 11.1.0-5 No fix listed
debian/pillow(Debian:13) = 11.1.0-5+deb13u1 No fix listed
debian/pillow(Debian:13) = 11.1.0-5+deb13u2 No fix listed
debian/pillow(Debian:13) = 11.1.0-5+deb13u3 No fix listed
debian/pillow(Debian:13) = 11.1.0-5+deb13u4 No fix listed
debian/pillow(Debian:13) = 11.2.1-1 No fix listed
debian/pillow(Debian:13) = 11.3.0-1 No fix listed
debian/pillow(Debian:13) = 12.0.0-1 No fix listed
debian/pillow(Debian:13) = 12.1.0-1 No fix listed
debian/pillow(Debian:13) = 12.1.1-1 No fix listed
debian/pillow(Debian:13) = 12.1.1-2 No fix listed
debian/pillow(Debian:13) = 12.2.0-1 No fix listed
debian/pillow(Debian:13) = 12.3.0-1 No fix listed
debian/pillow(Debian:13) = 13.0.0-1 No fix listed
debian/pillow(Debian:14) < 13.0.0-1 13.0.0-1
debian/pillow(Debian:14) = 11.1.0-5 No fix listed
debian/pillow(Debian:14) = 11.2.1-1 No fix listed
debian/pillow(Debian:14) = 11.3.0-1 No fix listed
debian/pillow(Debian:14) = 12.0.0-1 No fix listed
debian/pillow(Debian:14) = 12.1.0-1 No fix listed
debian/pillow(Debian:14) = 12.1.1-1 No fix listed
debian/pillow(Debian:14) = 12.1.1-2 No fix listed
debian/pillow(Debian:14) = 12.2.0-1 No fix listed
debian/pillow(Debian:14) = 12.3.0-1 No fix listed
redhat/python3.12-pillow(Red Hat:ansible_automation_platform:2.6::el9) < 13.0.0-1.el9ap 13.0.0-1.el9ap
redhat/python-pillow(Red Hat:enterprise_linux:8) < 5.1.1-36.el8_10 5.1.1-36.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/rhaiis/vllm-rocm-rhel9:1793961846(Red Hat:ai_inference_server:3.2::el9) All versions No fix listed
redhat/rhaiis/model-opt-cuda-rhel9:1793962303(Red Hat:ai_inference_server:3.2::el9) All versions No fix listed
redhat/rhaiis/vllm-cuda-rhel9:1793961309(Red Hat:ai_inference_server:3.2::el9) All versions No fix listed
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/rhelai3/disk-image-cuda-rhel9:1793995863(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-aws-cuda-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-azure-cuda-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-azure-rocm-rhel9:1793973314(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-cuda-rhel9:1793914518(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-gcp-cuda-rhel9:1793973312(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhelai3/bootc-rocm-rhel9:1793914504(Red Hat:enterprise_linux_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-caikit-tgis-serving-rhel9:1793664963(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-llama-stack-core-rhel9:1794492228(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-kserve-storage-initializer-rhel9:1793691340(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-mlflow-rhel9:1793584398(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-ogx-core-rhel9:1793383222(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-openvino-model-server-rhel9:1793455001(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-cpu-py312-rhel9:1793688471(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-cuda-py312-rhel9:1793715343(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-th-torch-rocm-py312-rhel9:1793680216(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-training-cuda128-torch29-py312-rhel9:1793763316(Red Hat:openshift_ai:3.5::el9) All versions No fix listed
redhat/rhoai/odh-training-rocm64-torch29-py312-rhel9:1793763220(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

References