VulnPulse
HighAdvisoryPython

Pillow: TarIO negative size field causes infinite CPU-spin loop

影響: pip:Pillow < 13.0.0 → 13.0.0

TarIO.__init__ does not check that a tar header's size field is positive. A crafted header with a negative size makes it seek backward onto itself. This causes an infinite loop that uses 100% CPU and never returns. Details TarIO.__init__ reads 512-byte tar headers one at a time, looking for a member with a given name. For each header it reads the size field and skips ahead to the next header: python size = int(s[124:135], 8) ... self.fh.seek((size + 511) & (~511), io.SEEK_CUR) There is no check…

Read on GitHub Advisory Database

CVECVE-2026-96642
SourceGitHub Advisory Database
Fetched10/23/2026, 05:09 AM
DataMarkdown JSON

On 10/23/2026, 01:01 AM, GitHub Advisory Database published "Pillow: TarIO negative size field causes infinite CPU-spin loop" (type: Advisory). Severity is "High" (high). Related technologies: Python. CVE: CVE-2026-96642.