---
schema_version: '1.0'
id: security-20261028-de963b
title: CVE-2026-112402 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4331
url_hash: de963b8ab1fb03f8bba6c3ef7f4e0e38433af188e9e9eff46ccf80e52b3fa6a5
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4331
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-112402
- PYSEC-2026-4331
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- pillow
- PyPI
lang: en
published_at: '2026-10-19T22:17:07Z'
fetched_at: '2026-10-28T12:20:31.095678Z'
updated_at: '2026-10-28T15:41:01Z'
status: published
content_hash: 91fbe047c2847276ae04bcf37a72afc090f586bd58c8b651ed241b34a9d35795
content_changed_at: null
license_note: full
summary: Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free
  image memory when ImagingScaleAffine encounters a selective allocation failure.
  The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE
  operations with the default NEA
summary_source: rss
summary_en: Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double
  free image memory when ImagingScaleAffine encounters a selective allocation failure.
  The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE
  operations with the default NEA
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-112402
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4331
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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:47Z'
---

# CVE-2026-112402 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEA

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

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

**Details:**
Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt 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/commit/aafa6c75f7cdabb9f409a8aac7c780bea31d08d9
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-7mwm-ghpf-9vrm

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

## Source
元記事: [CVE-2026-112402 — pillow](https://osv.dev/vulnerability/PYSEC-2026-4331) — published 2026-10-19T22:17:07Z
