Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Pillow versions 9.4.0 up to but not including 13.0.0 are affected by a heap buffer overflow in the JPEG encoder's handling of the COM comment marker. An attacker who can supply a JPEG or PNG carrying a 65498-byte ICC profile and a comment can make an application that re-saves it as JPEG with the ICC profile write past a 64 KB heap buffer. The source reports that the reliable result is a process crash, and that code execution may be possible, though only the crash is demonstrated. Upgrade to Pillow 13.0.0 or later, which is listed as the fixed version.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.7 | High | 4.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:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0045, the 39th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:07 UTC First seen by agentprime
- 31 Oct 2026, 14:07 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-g7cr-3p24-7wf7
- OSV: GHSA-g7cr-3p24-7wf7
- github.com/python-pillow/Pillow/security/advisories/GHSA-g7cr-3p24-7wf7
- nvd.nist.gov/vuln/detail/CVE-2026-96778
- github.com/python-pillow/Pillow/pull/10124
- github.com/python-pillow/Pillow/commit/02561b8dc6117d5670d4b469fecdd02c70854f9b
- github.com/python-pillow/Pillow
- github.com/python-pillow/Pillow/releases/tag/13.0.0