// Security Advisory Triage

Pillow heap buffer overflow in JPEG comment handling

GitHub advisories — pip · published 2026-10-23 04:56 UTC
ACTION NEEDED PATCH_NOW SECURITY
WHAT CHANGEDCVE-2026-96778 published 22 October 2026 for Pillow versions before 13.0.0. Heap buffer overflow occurs when writing JPEG comment after ICC profile fills buffer. Severity rated high.
WHY IT MATTERSMemory safety vulnerability in a widely-deployed Python image processing library. Heap buffer overflows are exploitable for arbitrary code execution when processing untrusted images.
WHAT TO DOUpgrade Pillow to 13.0.0 or later. If you process user-uploaded images or images from external sources with Pillow, prioritize this update.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-g7cr-3p24-7wf7
+summary: Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
+severity: high
+published_at: 2026-10-22T16:05:39Z
+cve_id: CVE-2026-96778
+vulnerabilities[].package.name: Pillow
+vulnerabilities[].first_patched_version: 13.0.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPillow is a standard Python image library in many service dependency trees. Heap buffer overflow is exploitable memory corruption.
signalsknown CVE with assigned ID · high severity rating · heap buffer overflow — memory safety issue · Pillow is a common image processing dependency in Python services · first patched version identified (13.0.0) · new advisory entry — not a restatement
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)