---
schema_version: '1.0'
id: security-20261027-ca3c2c
title: CVE-2026-112396 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4328
url_hash: ca3c2c2dc5da5fadba5bd9eeaaee303d5652552e88887eebbf17eeeab03982bd
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4328
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-112396
- PYSEC-2026-4328
- 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-27T12:15:26.188671Z'
updated_at: '2026-10-27T14:43:31Z'
status: published
content_hash: ab85920e5e4f3db7d0c2d9f5c9f6d8300998832095a4faf3eb98f1881fc1f1c4
content_changed_at: null
license_note: full
summary: 'Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has
  a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an
  in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO,
  libtiff can reject a tag during encoding '
summary_source: rss
summary_en: 'Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow
  has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to
  an in-memory buffer. When an application saves attacker-influenced TIFF tags to
  BytesIO, libtiff can reject a tag during encoding '
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-111497
- CVE-2026-112396
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4328
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- software security
entities_en:
- name: CVE-2026-111497
  type: data
- name: PyPIのBrotliパッケージ
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-111497
  type: data
- name: PyPIのBrotliパッケージ
  type: organization
key_facts: []
related: []
related_auto:
- name: Brotli解凍の脆弱性「Node2Shell」
  type: concept
  weight: 1.0
- name: NVD
  type: organization
  weight: 1.0
- name: OSV.dev PYSEC-2026-4322
  type: location
  weight: 1.0
- name: Node.js公式
  type: organization
  weight: 1.0
- name: 1.2.0以下
  type: data
  weight: 1.0
computed_at: '2026-10-27T14:43:28Z'
---

# CVE-2026-112396 — pillow

## TL;DR
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding 

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

**Details:**
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code 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/commit/dc95da20207827a062cfbf551ee9f6031465a8bb
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm

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

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