---
schema_version: '1.0'
id: security-20261028-17a1b2
title: CVE-2026-96644 — pillow
url: https://osv.dev/vulnerability/PYSEC-2026-4343
url_hash: 17a1b29fa65283c934c8b366d37e09959b0f5cf1024de684abf1b8c37c5cc5b4
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4343
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-96644
- PYSEC-2026-4343
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- pillow
- PyPI
lang: en
published_at: '2026-10-21T21:20:32Z'
fetched_at: '2026-10-28T12:20:31.144215Z'
updated_at: '2026-10-28T15:41:02Z'
status: published
content_hash: c68ad3fd819e4df3c5faa769613e7616121f1cb796be48212f95cbb1c1b070f2
content_changed_at: null
license_note: full
summary: 'Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py
  passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c.
  The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields
  but copies '
summary_source: rss
summary_en: 'Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py
  passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c.
  The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields
  but copies '
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2026-96644
- library vulnerability
- pillow
- PyPI
- PyPIのBrotliパッケージ
- PYSEC-2026-4343
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/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-96644 — pillow

## TL;DR
Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies 

## Key Points
- cve / CVE-2026-96644 / PYSEC-2026-4343 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H / pillow / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
**Advisory:** PYSEC-2026-4343 (CVE-2026-96644)

**Details:**
Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. 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-9v9v-9qvf-h2hj
- https://github.com/python-pillow/Pillow/pull/10120
- https://github.com/python-pillow/Pillow/commit/4cf46bee338304c5c8968fd7f132ba0d40c428b7

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

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