Pillow、Windows版でWMF/EMF画像処理時に情報が漏れる恐れ
Summary
Windows環境のPillowでWMF・EMF画像を描画する際、ヒープ領域の範囲外を読み取られる脆弱性が見つかりました。メモリの内容が漏れたり、プロセスが異常終了したりする恐れがあります。影響を受けるのは13.0.0より前のバージョンで、13.0.0で修正されています。Pillowを13.0.0以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Windows環境のPillowでWMF・EMF画像を描画する際、ヒープ領域の範囲外を読み取られる脆弱性が見つかりました。メモリの内容が漏れたり、プロセスが異常終了したりする恐れがあります。影響を受けるのは13.0.0より前のバージョンで、13.0.0で修正されています。Pillowを13.0.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| python-pillowPillow | — | Not listed |
| pipPillow |
< 13.0.0→ 13.0.0 |
13.0.0 |
| PyPIpillow |
< 13.0.0→ 13.0.0 |
13.0.0 |
| Bitnamipillow |
< 13.0.0→ 13.0.0 |
13.0.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-96644 pillow-python2, pillow No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com