Heap-based buffer overflow in Pillow - CVE-2026-59205
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 a heap-based buffer overflow in ImageCmsTransform.apply() when processing a caller-supplied output image whose mode does not match the transform's declared output mode. A remote attacker can supply a crafted output image object to cause a denial of service.
The issue is reachable through Pillow's public ImageCms API, and the source image pixels can influence the bytes written out of bounds.