## Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)

- 種別: advisory
- 重大度: high
- 関連技術: python
- CVE: CVE-2026-96644
- 公開日時: 2026-10-22T16:03:14.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-9v9v-9qvf-h2hj)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-9v9v-9qvf-h2hj

影響: pip:Pillow < 13.0.0 → 13.0.0
On Windows builds, Pillow stores EMF and WMF image dimensions without a range check and passes them to the native drawwmf handler. That code sizes its allocation from dimensions truncated into 16-bit header fields but copies the result using the full 32-bit dimensions. A crafted metafile that is wide and short passes the decompression-bomb pixel check yet causes a heap over-read. Details The EMF branch computes the size straight from signed 32-bit header fields and stores it with no positivity…