CVE-2026-96637: python-pillow pillow Uncontrolled Resource Consumption
Vulnerability summary
CVE-2026-96637 is a high (CVSS 7.1) Uncontrolled Resource Consumption vulnerability in python-pillow pillow.
Timeline
- 21-10-2026PublishedVulnerability first disclosed.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-409Improper Handling of Highly Compressed Data (Data Amplification)The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
Affected systems
Python-pillow1 product
- pillow< 13.0.0
1 vendor · 1 product
References
4 links- github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pwX Refsource CONFIRM
- github.com/python-pillow/Pillow/pull/10076X Refsource MISC
- github.com/python-pillow/Pillow/releases/tag/13.0.0X Refsource MISC