CVE-2026-96637 Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS

High 7.1 Published Updated
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.

Weakness: CWE-409, CWE-400

Which versions are affected by CVE-2026-96637?

4 open source packages ship an affected version, including pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions13.0.0
pillow PyPIAll versions13.0.0
pillow PyPIAll versions13.0.0
pillow PyPIAll versions13.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.

All Python Pillow vulnerabilities

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.

Is CVE-2026-96637 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free