Vulnerability
CVE-2026-112396
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
55 advisories report this vulnerability, across 8 ecosystems.
Advisories
- CGA-294g-7mg6-86pm
- CGA-2g6c-hwcp-2w98
- CGA-37q7-cx57-fghj
- CGA-4rc4-qvpg-c73x
- CGA-5f84-9pjr-65q5
- CGA-5g98-hj9w-398q
- CGA-6449-83m9-8rc5
- CGA-6pcm-93qg-6jv6
- CGA-6rpc-7c5v-p8gg
- CGA-6w7v-29j4-8hfm
- CGA-726v-8xjm-rgj3
- CGA-73c6-r4q9-vh78
- CGA-756x-4m26-qc62
- CGA-7pwp-cw2h-45f3
- CGA-8fjm-f4vx-4g3h
- CGA-8r9g-8r33-mp99
- CGA-c23c-74xv-g834
- CGA-c985-hf43-2rcw
- CGA-fv5w-38jp-rg3p
- CGA-gjf5-r844-4j9h
- CGA-h8wm-mmph-pxwq
- CGA-hfp5-cgqp-2j6m
- CGA-hh8q-f6hm-924x
- CGA-hv35-cp8q-784q
- CGA-j46v-qx54-jcmr
- CGA-j79h-wxfg-95fr
- CGA-m44q-42gm-j5cm
- CGA-m548-9mwj-38w5
- CGA-m9pw-x6m4-v4rv
- CGA-mffc-cf3v-27h4
- CGA-mqrw-5r65-9894
- CGA-mxcr-7qvv-8p53
- CGA-p7m7-7qfr-v4gh
- CGA-p96p-g4h2-jw5g
- CGA-pmq8-hp7g-j775
- CGA-q9mj-mfrc-cv95
- CGA-qqr8-q3gq-2qh4
- CGA-qw4v-hpr7-296f
- CGA-rrrq-wg5p-3j7h
- CGA-v962-mjr2-h2vq
- CGA-v9g6-6473-6qwm
- CGA-wcxp-7wpp-gcmh
- CGA-wmf3-mcq5-f846
- CGA-xcp2-857c-jm23
-
DEBIAN-CVE-2026-112396
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced…
-
GHSA-4rr5-89j8-mwwm
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
-
PYSEC-2026-4328
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced…
-
RHVEX-CVE-2026-112396
pillow: pillow: arbitrary code execution via heap use-after-free during TIFF encoding
-
SUSE-SU-2026:24656-1
Security update for python-Pillow
-
SUSE-SU-2026:24701-1
Security update for python-Pillow
-
UBUNTU-CVE-2026-112396
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced…
-
USN-9064-1
pillow vulnerabilities
-
openSUSE-SU-2026:12230-1
python313-Pillow-13.0.0-1.1 on GA media
-
openSUSE-SU-2026:22246-1
Security update for python-Pillow
-
openSUSE-SU-2026:22301-1
Security update for python-Pillow