CVE-2026-96778: Pillow · Heap buffer overflow writing JPEG comment after ICC profile fills buffer
Affects pillowSource GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 13.0.0 soon.
Data as of 29 Oct 2026, 14:41 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.7 |
|---|
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% 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:P/PR:N/UI:P/VC:H/VI:H/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 29 Oct 2026.
What to do
Upgrade pillow to 13.0.0.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamipillowpkg:bitnami/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 vulnerability is fixed. Applying this official fix eliminates the risk associated with this heap buffer overflow.
Description
A heap buffer overflow vulnerability exists in Pillow versions from 9.4.0 up to but not including 13.0.0. The flaw occurs when the JPEG encoder buffer is exactly filled by an ICC profile, allowing an attacker-controlled JPEG comment to overwrite adjacent heap memory. This can lead to process crashes and potentially code execution under certain runtime and heap conditions. The issue is fixed in Pillow version 13.0.0.
References
- github.com/python-pillow/Pillow/commit/02561b8dc6117d5670d4b469fecdd02c70854f9b (opens in a new tab)
- github.com/python-pillow/Pillow/pull/10124 (opens in a new tab)
- github.com/python-pillow/Pillow/releases/tag/13.0.0 (opens in a new tab)
- github.com/python-pillow/Pillow/security/advisories/GHSA-g7cr-3p24-7wf7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-96778 (opens in a new tab)