---
schema_version: '1.0'
id: security-20261028-d93eb7
title: CVE-2026-96637 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4338
url_hash: d93eb75fd409c72f4232299dd8c375b5762f8342738f874c146873459c8d0ae1
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4338
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-96637
- PYSEC-2026-4338
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- pillow
- PyPI
lang: en
published_at: '2026-10-21T21:20:31Z'
fetched_at: '2026-10-28T12:20:31.125956Z'
updated_at: '2026-10-28T15:41:02Z'
status: published
content_hash: ea20bf004a9e77f044df6b50c31919dbc29f6efc3835dd854a367efa618249b7
content_changed_at: null
license_note: full
summary: 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()
summary_source: rss
summary_en: 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()
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-96637
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4338
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Shay McVeigh
- software security
entities_en:
- name: PyPIのBrotliパッケージ
  type: organization
- name: Shay McVeigh
  type: person
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: Shay McVeigh
  type: person
- name: PyPIのBrotliパッケージ
  type: organization
key_facts: []
related: []
related_auto: []
computed_at: '2026-10-28T15:40:58Z'
---

# CVE-2026-96637 — pillow

## TL;DR
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()

## Key Points
- cve / CVE-2026-96637 / PYSEC-2026-4338 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H / pillow / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
**Advisory:** PYSEC-2026-4338 (CVE-2026-96637)

**Details:**
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:**
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw
- https://github.com/python-pillow/Pillow/pull/10076
- https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-4338_

## Source
元記事: [CVE-2026-96637 — pillow](https://osv.dev/vulnerability/PYSEC-2026-4338) — published 2026-10-21T21:20:31Z
