CVE-2026-96637 Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-96637?
CVE-2026-96637 is a high-severity vulnerability in Python Pillow, published on 21 Oct 2026.
Official description
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.
Which versions are affected by CVE-2026-96637?
4 open source packages ship an affected version, including pillow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | All versions | 13.0.0 |
pillow PyPI | All versions | 13.0.0 |
pillow PyPI | All versions | 13.0.0 |
pillow PyPI | All versions | 13.0.0 |
Products include Python Pillow.
How do I fix CVE-2026-96637?
Upgrade pillow to 13.0.0 or later.
Is CVE-2026-96637 being exploited?
There is no known exploitation of CVE-2026-96637 in the wild and no public exploit code.
Other vulnerabilities in Python Pillow
Sources
Also known as BIT-pillow-2026-96637, DEBIAN-CVE-2026-96637, ECHO-a7ab-f10a-7131, GHSA-g842-9rc4-69pw, PYSEC-2026-4338, ROOT-APP-PYPI-CVE-2026-96637 and 1 more.