Inefficient Algorithmic Complexity in Pillow - CVE-2026-96643

 

Inefficient Algorithmic Complexity in Pillow - CVE-2026-96643

Published: November 3, 2026


Vulnerability identifier: #VU158883
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-96643
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Pillow

How to mitigate CVE-2026-96643

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins