CVE-2026-96637: Python Pillow
Medium severity, CVSS 6.5. EPSS: 0.4% probability of exploitation activity in the next 30 days.
Pillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Python Pillow, before 13.0.0: fixed in 13.0.0
Affected products
Affected packages
- pillow (PyPI)
Published 2026-10-21. Last modified 2026-10-27.