CVE-2026-96637Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.5% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.5%
- percentile 32%
- Fix
- Named by a source
- CVE published 21 Oct 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.5% (+0) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- pillow (PyPI): upgrade to 13.0.0 or later on your release line.
- Patch: https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841
- Commit / pull request: https://github.com/python-pillow/Pillow/pull/10076
- Advisory: https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- Advisory: https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-96637
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected< 13.0.0Fixed in13.0.0OSV (PYSEC-2026-4338)
python pillow product:python/pillow
- Affected< 13.0.0Affected range ends before13.0.0as published by CPE data (via the NVD API)
python-pillow Pillow product:pythonpillow/pillow
- Affected< 13.0.0Affected range ends before13.0.0as published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 6.5 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-400, CWE-409
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 21 Oct 2026Published
References
- patchhttps://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841
- commit / pull requesthttps://github.com/python-pillow/Pillow/pull/10076
- advisoryhttps://github.com/python-pillow/Pillow/releases/tag/13.0.0
- advisoryhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-96637
- otherhttps://github.com/python-pillow/Pillow
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-96637 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-g842-9rc4-69pw (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-4338 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 49 min ago · osv 49 min ago · nvd 49 min ago · epss 49 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2026-96637, GHSA-g842-9rc4-69pw, PYSEC-2026-4338