Heap-based buffer overflow in Pillow - CVE-2026-112395
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service and potentially disclose adjacent heap memory through decoded pixel data.
The vulnerability exists due to a heap buffer over-read in Pillow's tiled TIFF decoder when the copy4 row unpacker reads from a tile buffer that _decodeTile has not verified is large enough. A remote attacker can submit a crafted tiled TIFF to an application that decodes it with Pillow to crash the process or potentially expose adjacent heap memory.
Affected software
Ubuntu
python3-pil (Ubuntu package)
How to mitigate CVE-2026-112395
python3-pil (Ubuntu package) - addressed in versions 9.0.1-1ubuntu0.7, 10.2.0-1ubuntu1.5, 12.1.1-2ubuntu1.5, 12.3.0-1ubuntu2