Shellfeed logo Shellfeed

CVE-2026-96642 · HIGH

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

EPSS: 0.3% probability of exploitation in the next 30 days (percentile 28.4).

Details

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.

Severity

HIGH — vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected packages

  • PyPI pillow [0 – 13.0.0]
  • GIT github.com/python-pillow/pillow [0 – 293218ad059d994baf1777d882911bed6a49704a]

References