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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 13.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-19 · Modified: 2026-10-19
- Aliases: DEBIAN-CVE-2026-112393, GHSA-332p-7hrc-92wf, CGA-3wpf-prm9-wrw3, CGA-hv8r-q4qg-7ggg, CGA-pfq5-r7q4-vc2w, CGA-r5j8-vpjm-8rc5, CGA-7cmq-96vx-7fj8, CGA-gj75-7cw5-67fw, CGA-vm64-325r-4x7f, CGA-wmr9-f4pp-fhgp, CGA-2rhp-8925-pf4v, CGA-5rwp-wm8x-w8c6, CGA-7cv8-wrrf-xc58, CGA-7mc2-wq9m-56xh, CGA-7wmg-849p-hwwr, CGA-8rvp-88cw-wm9v, CGA-c626-9j2f-rcr8, CGA-cwr6-cgmc-3qp2, CGA-h4mf-7wx4-2wc7, CGA-jg72-hw59-85q4, CGA-prp6-g79c-r8x8, CGA-rc7j-688q-5w32, CGA-rjwq-g6r7-c75g, CGA-rm3f-2rxp-xvpq, CGA-vpfg-q764-9xc8, CGA-w4c8-76fh-c8mx, CGA-x294-r6wx-2m49, CGA-5x5j-p2jf-f3f3, CGA-8w9x-jm54-v42g, CGA-pqfv-j4w7-fwr8, CGA-x8mm-v2pp-fh3p, CGA-396m-8f9w-89pm, CGA-6g88-f4cq-hv2g, CGA-79mj-fgjg-4q6g, CGA-8r84-xq67-39v6, CGA-9cw4-vjqp-fh85, CGA-cm8q-fvcw-r3f6, CGA-wm6x-x958-98g5, CGA-mmfh-9xxm-86jq, UBUNTU-CVE-2026-112393, CGA-c5mh-4h2f-63v9, CGA-p93x-m2cx-r2jm, CGA-h4h5-7cv8-5wwq, BIT-pillow-2026-112393
- Record: https://cvemate.com/vulnerability/CVE-2026-112393 · JSON: https://cvemate.com/vulnerability/CVE-2026-112393/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.019%, percentile 64.526%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 34)

- chainguard apache-beam-python-3.12-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r5
- chainguard mlflow (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r2
- chainguard mlflow-fips (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r3
- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r6
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): \< 0.7.0-r11
- chainguard nemo-skills (Chainguard): All versions (No fix recorded) \| \< 0.7.0\_git20260911-r5
- chainguard open-webui (Chainguard): \< 0.12.3-r6 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): All versions (No fix recorded) \| \< 25.5.2\_git20260914-r12
- chainguard py3.10-pillow (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-12.6 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.2 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-vllm-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.11-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.11-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2
- chainguard py3.12-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.12-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2
- chainguard py3.13-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.13-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf>
- <https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40>
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-112393>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112393>
- <https://github.com/python-pillow/Pillow>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112393.json>
- <https://ubuntu.com/security/CVE-2026-112393>
- <https://www.cve.org/CVERecord?id=CVE-2026-112393>
- <https://ubuntu.com/security/notices/USN-9064-1>

---

Data as of 2026-12-05T05:13:35.746Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
