CVE-2026-112393
pillow: Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Overview
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.
Source: OX vulnerability database
OX research
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-122
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | pillow | >=2.0.0, <13.0.0 | 13.0.0 |
| PyPI | pillow | >=2.0.0, <13.0.0 | 13.0.0 |
| Seal PyPI | pillow | >=10.0.1+sp0, <10.0.1+sp999>=7.2.0+sp0, <7.2.0+sp999>=9.3.0+sp0, <9.3.0+sp999>=9.5.0+sp0, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
| Seal PyPI | seal-pillow | >=10.0.1+sp1, <10.0.1+sp999>=7.2.0+sp1, <7.2.0+sp999>=9.3.0+sp1, <9.3.0+sp999>=9.5.0+sp1, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 41 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-36.el8_10 |
Red Hat 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-pillow +6 | affected | — |
| 8 | python3-pillow | 0:5.1.1-15.el8_4.3 | RHSA-2026:98120 |
| 8 | python3-pillow | 0:5.1.1-20.el8_6.2 | RHSA-2026:98111 |
| 8 | python3-pillow | 0:5.1.1-20.el8_8.2 | RHSA-2026:98109 |
| 8 | python3-pillow +3 | 0:5.1.1-36.el8_10 | RHSA-2026:93077 |
SUSE Linux Enterprise 6 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pillow +1 | 9.5.0-150400.5.28.1 | SUSE-SU-2026:5194-1 |
| 15.5 | python311-pillow +1 | 9.5.0-150400.5.28.1 | SUSE-SU-2026:5194-1 |
| 15.6 | python311-pillow +1 | 9.5.0-150400.5.28.1 | SUSE-SU-2026:5194-1 |
| 15.7 | python3-pillow | 7.2.0-150300.3.33.1 | SUSE-SU-2026:5038-1 |
| 15.7 | python311-pillow +1 | 9.5.0-150400.5.28.1 | SUSE-SU-2026:5194-1 |
| 16.0 | python313-pillow +1 | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
1 more row
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-36.el8_10 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.12 |
chainguard 1 release · 11 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.12.3-r6 | |
| nemo-gym | 0.5.0_rc0_git20260729-r6 | |
| nemo-rl-cuda-13-0 | 0.7.0-r11 | |
| nemo-skills | 0.7.0_git20260911-r5 | |
| py3-pillow | 13.0.0-r0 | |
| py3-pytorch-cuda-13-0 | 2.14.1-r2 |
5 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | pillow | affected |
| 12 | pillow | affected |
| 13 | pillow | affected |
| 14 | pillow | 13.0.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pillow | affected |
openSUSE Leap 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.9.1 | openSUSE-SU-2026:22246-1 |
| 16.1 | python313-pillow +1 | 11.3.0-160100.3.1 | openSUSE-SU-2026:22301-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow | 5.1.1-36.el8_10 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | pillow | 5.1.0-1ubuntu0.8+esm3 |
| 20.04-ESM | pillow | 7.0.0-4ubuntu0.9+esm2 |
| 22.04 | pillow | 9.0.1-1ubuntu0.7 |
| 24.04 | pillow | 10.2.0-1ubuntu1.5 |
| 26.04 | pillow | 12.1.1-2ubuntu1.5 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.12.3-r6 | |
| py3-pillow | 13.0.0-r0 |
References
- OX research https://www.ox.security/blog/three-critical-pillow-cves-rce-and-heap-overflows-in-pythons-imaging-library-cve-2026-112900-cve-2026-112393-cve-2026-112403/
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:93077
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-112393
- bugzilla.redhat.com https://bugzilla.redhat.com/2555846
- bugzilla.redhat.com https://bugzilla.redhat.com/2555867
- bugzilla.redhat.com https://bugzilla.redhat.com/2555889
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2555846
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2555867
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2555889
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
Show all 24 references
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112393
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112398
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-112900
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2026-93077.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:93077
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40
- github.com https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-112393.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-93077.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-112393
- ubuntu.com https://ubuntu.com/security/notices/USN-9064-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-112393
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.