---
schema_version: '1.0'
id: security-20261028-f09f28
title: CVE-2026-96641 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4340
url_hash: f09f28aacc3dd6c9519ded50b7ae7c348988763762608c17a267058b4aa8d4cf
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4340
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-96641
- PYSEC-2026-4340
- 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.132740Z'
updated_at: '2026-10-28T15:41:02Z'
status: published
content_hash: 963908f92e36acb1482becae3a5f791be115b7199fce1f17a8e9246f8cb82991
content_changed_at: null
license_note: full
summary: Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation
  in src/_imaging.c checks positive glyph advances against INT_MAX but does not check
  negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can
  therefore execute a signed C
summary_source: rss
summary_en: Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width
  accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but
  does not check negative advances against INT_MIN. Repeating a signed 16-bit advance
  of -32768 can therefore execute a signed C
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-96641
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4340
- 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:58Z'
---

# CVE-2026-96641 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C

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

**Details:**
Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. 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-4rm8-3hmm-39fg
- https://github.com/python-pillow/Pillow/pull/10010
- https://github.com/python-pillow/Pillow/commit/80de4be9e38d3a6148dd4d8491eb80cd12b760a4

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

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