Heap-based buffer overflow in Pillow - #VU158900
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in Pillow's libtiff TIFF encoder when saving images whose retained metadata specifies oversized scanlines and enables Predictor=2. A remote attacker can upload a crafted image that causes libtiff's horizontal differencing operation to rewrite data beyond the image-sized row buffer, corrupting the heap and aborting the process.
The overwritten values are byte-wise differences of existing heap contents; the attacker controls the extent and repetition of the writes, but not their data directly.