Skip to content
Medium 7.1

Pillow で TAR 解析が無限ループに陥りCPUを占有される

CVE-2026-96642 First seen on SecPulse

Summary

Pillow の TarIO で、不正な負のサイズを持つ TAR ヘッダーを読み込むと処理が終わらず、CPU を一つ占有し続けることがあります。影響を受けるのは 13.0.0 より前のバージョンで、修正版は 13.0.0 です。TarIO を直接使っている場合は、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 の TarIO で、不正な負のサイズを持つ TAR ヘッダーを読み込むと処理が終わらず、CPU を一つ占有し続けることがあります。影響を受けるのは 13.0.0 より前のバージョンで、修正版は 13.0.0 です。TarIO を直接使っている場合は、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, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. 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