NULL pointer dereference in Pillow - CVE-2026-112392
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by crashing the Python process using Pillow.
The vulnerability exists due to a null pointer dereference in ImagingExpand() in src/libImaging/Filter.c when padding an image with zero width or height before applying a median, minimum, maximum or rank filter. A remote attacker can supply crop coordinates with x0 == x1 or y0 == y1, or upload a crafted multi-page TIFF whose second image directory declares ImageLength = 0, to crash an application that processes the resulting empty image with one of these filters.