---
schema_version: '1.0'
id: security-20260714-3d7d29
url: https://osv.dev/vulnerability/PYSEC-2026-2254
url_hash: 3d7d29e5e3452b85c03fceb432da9a206a2f878d6ee3c0a7fd74b660f971f9a7
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2254
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-54060
- PYSEC-2026-2254
- 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: 358d75c45bde3443c333e8a7310c6cba9efddfa322766104ed284af9896b291d
license_note: full
summary: 'Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile()
  assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize))
  without calling Image._decompression_bomb_check(), allowing a font to trigger excessive
  allocation during '
summary_source: rss
summary_en: 'Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py
  FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1",
  (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font
  to trigger excessive allocation during '
entities:
- name: Pillow
  type: artifact
key_facts: []
related: []
related_auto: []
title: CVE-2026-54060 — pillow
---

# CVE-2026-54060 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during 

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

**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/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. 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-5x94-69rx-g8h2

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

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