{"id":"CVE-2026-96637","published":"2026-10-21T21:01:20Z","modified":"2026-10-23T21:18:59Z","title":"Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.31811,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10076","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.36},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-23T17:32:50.503938Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-g842-9rc4-69pw","PYSEC-2026-4338"],"provenance":"source"}],"summary":{"text":"Pillow's SpiderImagePlugin, in the SpiderImageFile.seek() method, fails to re-run the decompression-bomb size check when it switches to a later SPIDER stack frame, so the image dimensions it replaces are never validated before the frame is loaded. An unauthenticated remote attacker who can supply an image file, with the victim triggering a seek to the malicious frame (for example by processing an uploaded file), can make the application allocate roughly four bytes per declared pixel, consuming multiple gigabytes of memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:56Z"},"euvd":{"id":"EUVD-2026-107569","exploited":false,"provenance":"source"}}