CVE-2026-96636 Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-96636?
CVE-2026-96636 is a medium-severity vulnerability in Python Pillow, published on 21 Oct 2026.
Official description
Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
Which versions are affected by CVE-2026-96636?
4 open source packages ship an affected version, including pillow and 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-96636?
Upgrade pillow to 13.0.0 or later.
Is CVE-2026-96636 being exploited?
There is no known exploitation of CVE-2026-96636 in the wild and no public exploit code.
Other vulnerabilities in Python Pillow
Sources
Also known as BIT-pillow-2026-96636, DEBIAN-CVE-2026-96636, ECHO-bff9-5988-22f2, GHSA-p8hx-v2p6-rp84, PYSEC-2026-4337, UBUNTU-CVE-2026-96636.