# CVE-2026-112393: Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T20:46:40.784Z
- Modified: 2026-10-27T09:30:02.473Z
- Also known as: GHSA-332p-7hrc-92wf, BIT-PILLOW-2026-112393
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 2.0.0, < 13.0.0
- pillow (PyPI): from 2.0.0 before 13.0.0
- python pillow: from 2.0.0 before 13.0.0
- pillow (Bitnami): from 2.0.0 before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112393> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112393](https://www.cve.org/CVERecord?id=CVE-2026-112393), CVE Terms of Use, modified 2026-10-19
- GitHub Advisory Database: [GHSA-332p-7hrc-92wf](https://github.com/advisories/GHSA-332p-7hrc-92wf), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-112393](https://nvd.nist.gov/vuln/detail/CVE-2026-112393), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112393](https://osv.dev/vulnerability/BIT-PILLOW-2026-112393), Apache-2.0, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-112393 · Whole record: https://cve.day/CVE-2026-112393.json · Rebuilt by cve.day 2026-11-25T22:59:45.935Z
