Allocation of Resources Without Limits or Throttling in Pillow - CVE-2026-59204
Published: July 7, 2026
Pillow
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to improper memory allocation in the JPEG2000 tiled decoder in src/libImaging/Jpeg2KDecode.c when parsing a crafted tiled JPEG2000 image during decoding. A remote attacker can supply a specially crafted tiled JPEG2000 file to cause a denial of service.
The issue occurs because total_component_width is accumulated across tiles and then used to calculate tile_bytes, which can grow the scratch buffer to roughly the decompressed size of the full image.