Resource exhaustion in Pillow - CVE-2026-112400
Published: November 22, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by exhausting memory.
The vulnerability exists due to improper state handling in Pillow's GIF frame-seeking code when it stores enlarged dimensions before validation and retains them after they are rejected. A remote attacker can upload a crafted GIF to exhaust memory if the application catches the frame-seek error and continues using the same image object for decoding or transformations that allocate memory based on the rejected dimensions.
Affected software
Ubuntu
python3-pil (Ubuntu package)
How to mitigate CVE-2026-112400
python3-pil (Ubuntu package) - addressed in versions 10.2.0-1ubuntu1.5, 12.1.1-2ubuntu1.5, 12.3.0-1ubuntu2