---
schema_version: '1.0'
id: security-20261028-b351e4
title: CVE-2026-96643 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4342
url_hash: b351e4dc8eb7c1d4143833e28a14cf4f45e3d02d97fe34f5884bef4797c910a5
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4342
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-96643
- PYSEC-2026-4342
- 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:32Z'
fetched_at: '2026-10-28T12:20:31.140398Z'
updated_at: '2026-10-28T15:41:02Z'
status: published
content_hash: e42742a75db9fe8c385f5296d26d79390bcf8b2e2c95bd061d1e213fcde8db4b
content_changed_at: null
license_note: full
summary: Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load()
  in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with
  the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf
  chunk, so a file filled with repeated head
summary_source: rss
summary_en: Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load()
  in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with
  the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf
  chunk, so a file filled with repeated head
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-96643
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4342
- 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:59Z'
---

# CVE-2026-96643 — pillow

## TL;DR
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated head

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

**Details:**
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. 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-g4qv-2jxx-769h
- https://github.com/python-pillow/Pillow/pull/10073
- https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c

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

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