CVE-2026-96637
Pillow is a Python imaging library. Prior to 13.0.0, …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841
- github.com/python-pillow/Pillow/pull/10076
- github.com/python-pillow/Pillow/releases/tag/13.0.0
- github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw
- nvd.nist.gov/vuln/detail/CVE-2026-96637
- github.com/advisories/GHSA-g842-9rc4-69pw
- nvd.nist.gov/vuln/detail/CVE-2026-96637
- cve.org/CVERecord?id=CVE-2026-96637
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.