CVE-2026-112396
published medium CVSS 3.1 · 5.9Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| python-pillow | — | Pillow>= 11.3.0, < 13.0.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | python313-Pillowaarch64 | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| Ubuntu | resolute | pillow | Advisory build | 12.1.1-2ubuntu1.5 | USN-9064-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowaarch64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24701-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowppc64le | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillows390x | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
Show 43 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | python313-Pillowx86_64 | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24701-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tks390x | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowaarch64 | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowppc64le | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillows390x | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowx86_64 | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tks390x | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160000.9.1 | OPENSUSE-SU-2026:22246-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillowaarch64 | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillowppc64le | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillows390x | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillowx86_64 | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillow-tks390x | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160100.3.1 | OPENSUSE-SU-2026:22301-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillowaarch64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillowppc64le | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillows390x | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillowx86_64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillow-tkaarch64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillow-tkppc64le | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillow-tks390x | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pillow-tkx86_64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillowaarch64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillowppc64le | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillows390x | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillowx86_64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillow-tkaarch64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillow-tkppc64le | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillow-tks390x | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pillow-tkx86_64 | Advisory build | 13.0.0-1.1 | OPENSUSE-SU-2026:12230-1 |
| Ubuntu | resolute | python3-pil | Advisory build | 12.1.1-2ubuntu1.5 | USN-9064-1 |
| Ubuntu | resolute | python3-pil.imagetk | Advisory build | 12.1.1-2ubuntu1.5 | USN-9064-1 |
| Ubuntu | stonking | pillow | Advisory build | 12.3.0-1ubuntu2 | USN-9064-1 |
| Ubuntu | stonking | python3-pil | Advisory build | 12.3.0-1ubuntu2 | USN-9064-1 |
| Ubuntu | stonking | python3-pil.imagetk | Advisory build | 12.3.0-1ubuntu2 | USN-9064-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| python-pillow | Pillow | >= 11.3.0, < 13.0.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
3Provider assertions
2GitHub_M · cna
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ef3db51b6645120e86610595c9ac28e02e62c454e4cdd34fb55b35da56a542e4
- Ingested
- 20 Oct 2026, 16:20:55 UTC
- Source record
- Official CVE record