Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| python-pillow | Pillow | >= 11.3.0, < 13.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pillow | No fix yet | — |
| Debian 13 | pillow | No fix yet | — |
| Debian 12 | pillow | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pillow | 12.3.0-1ubuntu2 | USN-9064-1 |
| Ubuntu 26.04 LTS | pillow | 12.1.1-2ubuntu1.5 | USN-9064-1 |
| Ubuntu 24.04 LTS | pillow | 10.2.0-1ubuntu1.5 | USN-9064-1 |
| Ubuntu 22.04 LTS | pillow | 9.0.1-1ubuntu0.7 | USN-9064-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pillow | 7.0.0-4ubuntu0.9+esm2 | USN-9064-1 |
| Ubuntu Pro 20.04 LTS | pillow-python2 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pillow | 5.1.0-1ubuntu0.8+esm3 | USN-9064-1 |
| Ubuntu Pro 16.04 LTS | pillow | 3.1.2-0ubuntu1.6+esm4 | USN-9064-1 |
| Ubuntu Pro 14.04 LTS | pillow | 2.3.0-1ubuntu3.4+esm6 | USN-9064-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-Pillow | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SLES 16.0 | python-Pillow | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pillow | 13.0.0-1.1 | openSUSE-SU-2026:12230-1 |
| openSUSE Leap 16.0 | python-Pillow | 11.3.0-160000.9.1 | openSUSE-SU-2026:22246-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui | 0.12.3-r6 | — |
| Wolfi rolling | py3.10-pillow | No fix yet | — |
| Wolfi rolling | py3.11-pillow +2 | 13.0.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | >= 11.3.0, < 13.0.0 | 13.0.0 | GHSA-4rr5-89j8-mwwm |
Advisories 4
- USN-9064-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Nov 13, 2026
- SUSE-SU-2026:24656-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Nov 12, 2026
- openSUSE-SU-2026:22246-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Nov 11, 2026
- openSUSE-SU-2026:12230-1 python313-Pillow-13.0.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 23, 2026