Advisory record · GHSA-g7cr-3p24-7wf7

Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer

CVSS 7.7 HighEPSS 0.0045 · 39th percentile

Published by the GitHub Advisory Database at 22 Oct 2026, 16:05 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pillowPyPI>=9.4.0, <13.0.013.0.0
Identifiers
GHSA-g7cr-3p24-7wf7 · BIT-pillow-2026-96778 · CVE-2026-96778
Weakness (CWE)
CWE-787
Published
22 Oct 2026
Updated
29 Oct 2026

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.

Written 31 Oct 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 14:07 UTC First seen by agentprime
  2. 31 Oct 2026, 14:07 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.