Skip to main content

CVE-2026-96637: CWE-400: Uncontrolled Resource Consumption in python-pillow Pillow

0
High
VulnerabilityCVE-2026-96637cvecve-2026-96637cwe-400cwe-409
Published: 10/21/2026 (10/21/2026, 21:01:20 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

CVE-2026-96637 is a high-severity vulnerability in the Python Pillow imaging library prior to version 13.0.0. It involves uncontrolled resource consumption due to improper handling of SPIDER image frames in the SpiderImageFile.seek() function. An attacker can craft a file that initially appears safe but later declares very large image dimensions, causing excessive memory allocation when loading the large frame. This can lead to significant memory exhaustion. The issue is fixed in Pillow version 13.0.0.

CVSS v4.0

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

python-pillow

Pillow

Affected versions
<13.0.0
pillow
pkg:pypi/pillow
Affected versions
<13.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/21/2026, 21:45:34 UTC

Technical Analysis

The vulnerability exists in Pillow versions before 13.0.0 in the SpiderImageFile.seek() method located in src/PIL/SpiderImagePlugin.py. The method reparses a later SPIDER stack frame and replaces the internal _size attribute without rerunning the Image._decompression_bomb_check(). This allows an attacker to create a file with a safe initial frame that passes Image.open(), but subsequently declares very large dimensions in a later mode F frame. Loading this frame causes the library to allocate approximately four bytes per pixel, potentially consuming multiple gigabytes of memory and leading to uncontrolled resource consumption (CWE-400). This flaw was addressed and fixed in Pillow 13.0.0.

Potential Impact

This vulnerability can cause excessive memory consumption when processing maliciously crafted image files, potentially leading to denial of service due to resource exhaustion. There is no indication of code execution or data corruption. The CVSS 4.0 base score is 7.1 (high), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on availability.

Mitigation Recommendations

Upgrade to Pillow version 13.0.0 or later, where this vulnerability is fixed. No other mitigation is indicated or required according to the available data.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-23T14:35:50.130Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad92f434d27ba8daa03e679

Added to database: 10/21/2026, 21:31:47 UTC

Last enriched: 10/21/2026, 21:45:34 UTC

Last updated: 10/21/2026, 21:45:34 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses