Uncontrolled Memory Allocation in Pillow - CVE-2026-112399
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through excessive memory allocation and possible process termination.
The vulnerability exists due to memory allocation using an excessive, file-controlled size in Pillow's PngImageFile._seek() function when opening an APNG whose first frame requests background disposal. A remote attacker can supply a crafted APNG with oversized IHDR dimensions and a first fcTL chunk specifying OP_BACKGROUND or OP_PREVIOUS to trigger allocation and zero-filling of the full canvas before the decompression-bomb check runs, exhausting memory and potentially terminating the application process.