THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-3j72-p6qg-6xp7 (high) — Pillow: TarIO negative size field causes infinite CPU-spin loop

[GHSA] GHSA-3j72-p6qg-6xp7 (high) — Pillow: TarIO negative size field causes infinite CPU-spin loop

medgithub_advisoriesPublished 2026-10-22

GHSA-3j72-p6qg-6xp7 Severity: high CVE: CVE-2026-96642

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

### Summary `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 h

Indicators of compromise

Original source: https://github.com/advisories/GHSA-3j72-p6qg-6xp7