---
schema_version: '1.0'
id: security-20261028-8835b6
title: CVE-2026-96639 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4339
url_hash: 8835b6e6d85af4ae129ccc78c965475fed5cc764e25211032af32a6d50f957f0
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4339
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-96639
- PYSEC-2026-4339
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- pillow
- PyPI
lang: en
published_at: '2026-10-21T21:20:32Z'
fetched_at: '2026-10-28T12:20:31.129979Z'
updated_at: '2026-10-28T15:41:02Z'
status: published
content_hash: c2c7623c4356a6ce72f9e836bbe199f59552f9fea85b2afc680522ba1428b262
content_changed_at: null
license_note: full
summary: Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame
  loaders can retain an ImagingCore allocation created for a narrow frame mode while
  a later frame of the same dimensions changes the logical mode and decoder tiles
  to wider RGB or CMYK data. ImageFile.load_p
summary_source: rss
summary_en: Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame
  loaders can retain an ImagingCore allocation created for a narrow frame mode while
  a later frame of the same dimensions changes the logical mode and decoder tiles
  to wider RGB or CMYK data. ImageFile.load_p
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-96639
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4339
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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-96639 — pillow

## TL;DR
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_p

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

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

**Details:**
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. 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-v9pv-5gc8-w2m6
- https://github.com/python-pillow/Pillow/pull/10105
- https://github.com/python-pillow/Pillow/commit/78d97d994579aef81aafe123773d525f40f2522a

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

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