- Home
- Vulnerabilities
- CVE-2026-96642
CVE-2026-96642
Pillow: TarIO negative size field causes infinite CPU-spin loop
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))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Pillow | Versions not specified | — | CNA (vendor or assigner) |
Pypi (2 line(s))
Python (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| 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
- — CVE published (cve)
- — CERT-FR advisory (certfr:CERTFR-2026-AVI-1486)
- — CERT-FR advisory (certfr:CERTFR-2026-AVI-1527)
CERT-FR advisories
- CERTFR-2026-AVI-1527 — Multiples vulnérabilités dans VMware Tanzu Greenplum (13 novembre 2026) 13 Nov 2026
- CERTFR-2026-AVI-1486 — Multiples vulnérabilités dans les produits VMware (09 novembre 2026) 9 Nov 2026
- GHSA-3j72-p6qg-6xp7 — Pillow: TarIO negative size field causes infinite CPU-spin loop 22 Oct 2026
- PYSEC-2026-4341 — PYSEC-2026-4341 21 Oct 2026
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7exploit
- https://github.com/python-pillow/Pillow/pull/10012x_refsource_MISC
- https://github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71dx_refsource_MISC
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-96642ADVISORY
- https://github.com/python-pillow/PillowPACKAGE
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)