---
schema_version: '1.0'
id: security-20261028-08ab89
title: CVE-2026-112397 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4329
url_hash: 08ab89db45b28a8970d8ffdaf31434c360905f9cdb352cd49aa66ff893732997
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4329
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-112397
- PYSEC-2026-4329
- 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:06Z'
fetched_at: '2026-10-28T12:20:31.085350Z'
updated_at: '2026-10-28T15:41:01Z'
status: published
content_hash: b0bd91c84ad9662054c5b813d474624d7ab0d67937ce3398c5afb5d2a0f12804
content_changed_at: null
license_note: full
summary: Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply()
  can access memory before a row buffer for a zero-width image. PPM and PGM input
  can create an image with width zero, and the native morphology routine indexes outrow[width
  - 1] without reject
summary_source: rss
summary_en: Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply()
  can access memory before a row buffer for a zero-width image. PPM and PGM input
  can create an image with width zero, and the native morphology routine indexes outrow[width
  - 1] without reject
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-112397
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4329
- 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-112397 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without reject

## Key Points
- cve / CVE-2026-112397 / PYSEC-2026-4329 / 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-4329 (CVE-2026-112397)

**Details:**
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. 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/18f7c0dfee93063c51db6ed0ca8c4da2999dcb64
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-58r4-6rv3-gfh8

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

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