## Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read

- 種別: advisory
- 重大度: high
- 関連技術: python
- CVE: CVE-2026-112896
- 公開日時: 2026-10-20T20:51:40.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-pchr-8j38-3x4p)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-pchr-8j38-3x4p

影響: pip:Pillow <= 12.3.0 → 13.0.0
Summary A small attacker-supplied TIFF can be opened and loaded normally, then reach an out-of-bounds read when an application saves it back to TIFF with retained metadata. The fixed reproducer is a 1×1, 16-bit grayscale, PackBits-compressed TIFF containing tag 320 (ColorMap) with 768 SHORT values: three zero-filled planes of 256 entries each. No Python object is forged and no metadata is injected after loading. Pillow's TIFF encoder allocates 768 × 2 = 1536 bytes, then passes three plane point…