Inefficient Algorithmic Complexity in Pillow - CVE-2026-96643
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption during PNG EXIF parsing.
The vulnerability exists due to inefficient algorithmic complexity in Pillow's Exif.load() function in src/PIL/Image.py when processing PNG eXIf chunks containing repeated six-byte EXIF markers. A remote attacker can supply a crafted PNG containing repeated b"Exifx00x00" markers to cause quadratic-time processing, as each iteration of the marker-stripping loop copies the remaining data, resulting in excessive CPU consumption and processing delays.