1. Home
  2. Vulnerabilities
  3. CVE-2026-96642

CVE-2026-96642

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

Published 21 Oct 2026 · modified 30 Oct 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 43/100

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.

Affected products and versions

python-pillow (1 line(s))
python-pillow
ProductVersionsFixed inSource
Pillow Versions not specified — CNA (vendor or assigner)
Pypi (2 line(s))
Pypi
ProductVersionsFixed inSource
pillow before 13.0.0 (excluded) 13.0.0 GitHub Advisory
pillow before 13.0.0 (excluded) 13.0.0 OSV
Python (1 line(s))
Python
ProductVersionsFixed inSource
Pillow before 13.0.0 (excluded) — NVD

Fix

Upgrade — PyPI/pillow 13.0.0official source

Source : GitHub Advisory

Upgrade — PyPI/pillow 13.0.0official source

Source : OSV

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)
  2. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1486)
  3. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1527)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-835 · Autre (CWE-835)

How this data is obtained and calculated