CVE-2026-96637

7.1High

Published 21 Oct 2026 · NVD status: Undergoing Analysis · AI triage by gemini-3.8-flash

7.1CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
Passive
Impact
High impact on availability
Weakness
CWE-400, CWE-409

What an attacker gets

Attackers can crash the service by exhausting system memory (OOM denial of service) through a tiny malicious image. They only need to get an application or user to open and seek through a crafted SPIDER image file.

Root cause

SpiderImageFile.seek() reparses subsequent frames and overrides the image dimensions without rerunning decompression bomb protection checks.

Affected versions

Pillow prior to 13.0.0

CVSS v4.0 · 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

Fix & remediation

Upgrade Pillow to version 13.0.0 or higher. If upgrading immediately is not possible, reject or strip SPIDER format images before parsing.

remediation — bash
$ pip install --upgrade 'pillow>=13.0.0'

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-96637