{"schemaVersion":3,"id":"CVE-2026-96637","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-21T21:01:20.249Z","modified":"2026-10-21T21:01:20.249Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.1,"severity":"high","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/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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)","description":"The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/409.html"}],"affected":[{"vendor":"python-pillow","product":"pillow","name":"Pillow","label":"pillow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 13.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.0.0","eol":null,"hubHref":"/vendor/python-pillow/pillow"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw","label":"github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10076","label":"github.com/python-pillow/Pillow/pull/10076","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841","label":"github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","label":"github.com/python-pillow/Pillow/releases/tag/13.0.0","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-21T21:01:20.249Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T09:12:37.237Z","stale":false,"partial":false}}