---
schema_version: '1.0'
id: security-20260714-cb6737
url: https://osv.dev/vulnerability/PYSEC-2026-2256
url_hash: cb673768d5a4fe39890f8b67fbddb84f47bbeba0faf756c0023139e126d12949
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2256
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-55380
- PYSEC-2026-2256
- 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:44:25Z'
status: published
content_hash: a9a610b6ba2698e93935df57e6be22150dc59746ecaec9fd64736890c4d7a8ff
license_note: full
summary: Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open()
  read image dimensions from the GD 2.x header and stored them in self._size without
  calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger
  excessive C-heap alloca
summary_source: rss
summary_en: Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py
  GdImageFile._open() read image dimensions from the GD 2.x header and stored them
  in self._size without calling Image._decompression_bomb_check(), allowing a crafted
  .gd file to trigger excessive C-heap alloca
entities:
- name: Pillow
  type: artifact
key_facts: []
related: []
related_auto: []
title: CVE-2026-55380 — pillow
---

# CVE-2026-55380 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger excessive C-heap alloca

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

**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/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger excessive C-heap allocation when loaded. 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/f39b0ae6624eb2d7c5c5d651d9bb5fdbd96a8675
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-phj9-mv4w-65pm

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

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