Pillow で細工された画像によりメモリを大量に消費される恐れ
Summary
Pillow の SpiderImagePlugin において、後続のフレームを読み込む際に画像サイズの検査が行われず、小さなファイルで非常に大きな領域の確保を引き起こされる問題が見つかりました。影響を受けるのは 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.
Pillow の SpiderImagePlugin において、後続のフレームを読み込む際に画像サイズの検査が行われず、小さなファイルで非常に大きな領域の確保を引き起こされる問題が見つかりました。影響を受けるのは 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.
- Debian DEBIAN-CVE-2026-96637 pillow Fix available
- Ubuntu UBUNTU-CVE-2026-96637 pillow Fix available
Original description The description as published by the source.
Pillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. 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