CVE-2026-96642: Pillow · Infinite Loop
Affects PillowSource CVE Database V5
Not known to be exploited · CVSS 7.1 High : upgrade to 13.0.0 soon.
Data as of 4 Dec 2026, 18:38 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.1 |
|---|
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 13.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade Pillow and pillow to 13.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| python-pillowPillow | Affected
| Fixed in
|
PyPIpillowpkg:pypi/pillowOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to Pillow version 13.0.0 or later, where this issue is fixed. Since the vulnerability occurs only when directly using PIL.TarIO.TarIO, avoid using this class directly if upgrading is not immediately possible. Patch status is confirmed fixed in version 13.0.0.
Description
CVE-2026-96642 is a high-severity vulnerability in the Python Pillow imaging library prior to version 13.0.0. The flaw exists in the TarIO initializer, which accepts a negative octal member size and causes a backward seek that loops on the same 512-byte header. This results in an infinite loop consuming a full CPU core when the requested member name does not match. This issue only occurs when applications directly use PIL.TarIO.TarIO instead of the standard Image.open() method. The vulnerability is fixed in Pillow version 13.0.0.
References
- github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7 (opens in a new tab)
- github.com/python-pillow/Pillow/pull/10012 (opens in a new tab)
- github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d (opens in a new tab)
- github.com/python-pillow/Pillow/releases/tag/13.0.0 (opens in a new tab)