Skip to main content
← All vulnerabilities
CVE-2026-96642GHSA-3J72-P6QG-6XP7PYSEC-2026-4341

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.0.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • python-pillow Pillow

    fixed in 13.0.0

  • pillowPyPI

    fixed in 13.0.0

References 4

GitHub · python-pillow/Pillow