---
schema_version: '1.0'
id: security-20260714-27b2a1
url: https://osv.dev/vulnerability/PYSEC-2026-2253
url_hash: 27b2a1944d32713a8637946f335ffca87b4ebeee3c7585c232b8edc40b7fab35
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2253
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-54059
- PYSEC-2026-2253
- 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-07-06T19:17:08Z'
fetched_at: '2026-07-14T06:42:23Z'
updated_at: '2026-07-14T06:43:41Z'
status: published
content_hash: 941f7f58bdf55c0275198cf735591672d7230cca94f539664b01f3d6388e0b5c
license_note: full
summary: Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps()
  read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes()
  without calling Image._decompression_bomb_check(), allowing crafted PCF font data
  to cause exce
summary_source: rss
summary_en: Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py
  _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them
  directly to Image.frombytes() without calling Image._decompression_bomb_check(),
  allowing crafted PCF font data to cause exce
entities:
- name: Pillow
  type: artifact
key_facts: []
related: []
related_auto: []
title: CVE-2026-54059 — pillow
---

# CVE-2026-54059 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause exce

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

**Affected (your watchlist):**
- `PyPI:pillow` 12.1.1 → fixed in 12.3.0 [docker/docker-llmwiki]
- `PyPI:pillow` 12.2.0 → fixed in 12.3.0 [docker/local+docker/mac]

**Details:**
Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.

**References:**
- https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst
- https://github.com/python-pillow/Pillow/commit/0a263e6264aa5399988d9acd3bbfbca2ca3ec77d
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-8v84-f9pq-wr9x

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

## Source
元記事: [CVE-2026-54059 — pillow](https://osv.dev/vulnerability/PYSEC-2026-2253) — published 2026-07-06T19:17:08Z
