
CVE catalog
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 att
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.59% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pillow | sid | 13.0.0-1 | fixed |
| Debian | pillow | forky | 12.3.0-1 | vulnerable |
| Debian | pillow | trixie | 11.1.0-5+deb13u4 | vulnerable |
| Debian | pillow | trixie-security | 11.1.0-5+deb13u3 | vulnerable |
| Debian | pillow | bookworm | 9.4.0-1.1+deb12u1 | vulnerable |
| Debian | pillow | bookworm-security | 9.4.0-1.1+deb12u1 | vulnerable |
| Ubuntu | pillow | pro | 6.1.0-1 | vulnerable |
| Ubuntu | pillow | pro | 6.1.0-1build1 | vulnerable |
| Ubuntu | pillow | pro | 6.2.1-2 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4build1 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.1 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.2 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.3 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.4 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.5 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.6 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.7 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.8 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.9 | vulnerable |
| Ubuntu | pillow | pro | 7.0.0-4ubuntu0.9+esm1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3~build1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm2 | vulnerable |
| Ubuntu | pillow | 22.04 | 8.1.2+dfsg-0.3 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.0-1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1build1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.2 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.3 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.4 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.5 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.0.0-1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.1.0-1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1build1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1ubuntu1.2 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1ubuntu1.3 | vulnerable |
| Ubuntu | pillow | 26.10 | 12.1.1-2ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.10 | 12.3.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 11.3.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 11.3.0-1ubuntu2 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.0.0-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-1ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.1 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.2 | vulnerable |
| Ubuntu | pillow | 26.04 | 12.1.1-2ubuntu1.3 | vulnerable |
| Cpe | pillow | Not reported | 13.0.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pillow | source | sid | 13.0.0-1 | not yet assigned | Not reported | Not reported |
| Debian | pillow | source | forky | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | pillow | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | pillow | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | pillow | cpe | Not reported | 13.0.0 | Not reported | NVD-CVE-2026-112396 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pil]Affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
- [python3-pil.imagetk]Affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
- [python-pil-doc]Affected
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· all · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookwormAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityAffected
nvd · pillow · debian · bookworm; nvd · pillow · debian · 12
[Debian 13 (Trixie)]
- [python3-pil]Affected
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityAffected
nvd · pillow · debian · 13
- [python3-pil.imagetk]Affected
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityAffected
nvd · pillow · debian · 13
- [python-pil-doc]Affected
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· all · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u4· all · trixieAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityAffected
nvd · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityAffected
nvd · pillow · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_12230-1.json]
- [https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb]
- [https://github.com/python-pillow/Pillow/releases/tag/13.0.0]
- [https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-112396]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-112396]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-112396]
- [https://security-tracker.debian.org/tracker/CVE-2026-112396]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-112396.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]