Inefficient Algorithmic Complexity in Pillow - CVE-2026-112401
Published: November 22, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption.
The vulnerability exists due to quadratic copying in Pillow's GIF parser when it repeatedly concatenates immutable byte strings while assembling comment sub-blocks and extensions. A remote attacker can submit a crafted GIF to a service that opens it with Pillow to tie up a worker before pixel decoding begins.
Affected software
Ubuntu
python3-pil (Ubuntu package)
How to mitigate CVE-2026-112401
python3-pil (Ubuntu package) - addressed in versions 7.0.0-4ubuntu0.9+esm2, 9.0.1-1ubuntu0.7, 10.2.0-1ubuntu1.5, 12.1.1-2ubuntu1.5, 12.3.0-1ubuntu2