Back to feed
21Track

Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO

python-pillow Pillow · CVE-2026-112393 GHSA-332P-7HRC-92WF
0 news outlets1 CERTs and agencies0 research labs

Assessment: Track

SSVC decision points: exploitation poc, automatable no, technical impact total, deployment low.

What is it?

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.

Evidence

Official warnings1National CERTs, government cyber security agencies and the vendor’s own advisories

Exploitation

  • Exploit code published (not verified by us)
  • Exploited in the wild (confirmed by a source)
  • Listed as known exploited (CISA KEV)
CVSS
9.2
EPSS
1.0%
First seen
21 Oct 2026
Status
confirmed

All python-pillow vulnerabilities