# CVE-2026-112897: Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T22:00:52.749Z
- Modified: 2026-10-29T10:45:09.308Z
- Also known as: GHSA-q45j-58j2-45rg, BIT-PILLOW-2026-112897
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. From 5.3.0 until 13.0.0, Pillow can return uninitialized memory as pixels when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The _decodeStrip and _decodeTile buffers can be larger than the bytes written by libtiff, but Pillow converts the expected rows without clearing the unwritten tail. The tile path is affected from 5.3.0 and the strip path from 6.0.0. An attacker can supply a crafted TIFF to an application that loads and returns or re-encodes its pixels. This can disclose stale heap contents without memory corruption or a process crash. This issue is fixed in version 13.0.0.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-q45j-58j2-45rg> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/1d4773e6cea0c4a2814e6d4cdc099bbcf56da6ce> (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-112897> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112897](https://www.cve.org/CVERecord?id=CVE-2026-112897), CVE Terms of Use, modified 2026-10-22
- GitHub Advisory Database: [GHSA-q45j-58j2-45rg](https://github.com/advisories/GHSA-q45j-58j2-45rg), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-112897](https://nvd.nist.gov/vuln/detail/CVE-2026-112897), Public domain, modified 2026-10-27
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112897](https://osv.dev/vulnerability/BIT-PILLOW-2026-112897), Apache-2.0, modified 2026-10-29

---

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