Skip to content
Medium 7.1

Pillow で細工された画像によりメモリを大量に消費される恐れ

CVE-2026-96637 First seen on SecPulse

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

PackageAffected → Fixed
python-pillowPillow —
pippillow
< 13.0.0→ 13.0.0
PyPIpillow
< 13.0.0→ 13.0.0
Bitnamipillow
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details