CVE-2026-96643

7.1High

Published 21 Oct 2026 · NVD status: Undergoing Analysis · AI triage by gemini-3.8-flash

7.1CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
Passive
Impact
High impact on availability
Weakness
CWE-407

What an attacker gets

Remote attackers can cause severe CPU denial of service by uploading a crafted PNG image. The attack requires user interaction such as processing an uploaded file via common EXIF handling functions.

Root cause

Exif.load() repeatedly slices uncapped PNG EXIF chunks containing duplicate headers, resulting in quadratic memory slicing and CPU consumption.

Affected versions

Pillow 11.0.0 through 12.x (fixed in 13.0.0)

CVSS v4.0 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade Pillow to version 13.0.0 or higher. If patching must wait, avoid calling Image.getexif(), Image._getexif(), or ImageOps.exif_transpose() on untrusted PNG files.

remediation — bash
$ pip install --upgrade 'pillow>=13.0.0'

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-96643