PoC Monitor
← All CVEs
CVE-2026-96778published 21 Oct 2026 20:58 UTCData: JSON · API

Python-pillow Pillow

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

Pillow is a Python imaging library. From 9.4.0 until 13.0.0, ImagingJpegEncode() in src/libImaging/JpegEncode.c can call jpeg_write_marker() for a JPEG COM comment when an ICC profile has exactly filled the 65536-byte encoder buffer. libjpeg writes one byte before checking the exhausted free_in_buffer counter, which then wraps and permits the attacker-controlled comment and subsequent compressed image data to overwrite adjacent heap memory. Re-saving an untrusted image as JPEG while preserving its ICC profile and forwarded comment can crash the process and may enable code execution in suitable runtime and heap layouts. This issue is fixed in version 13.0.0.

First public PoC 6.2 daysafter publication · 28 Oct 2026
Public PoCs11 on GitHub
CVSS8.8high · scored by NVD · CWE-787
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

python-pillow Pillow
  • >= 9.4.0, < 13.0.0

Fixed in 13.0.0

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published21 Oct 2026 · t = 0First public PoC28 Oct 2026 · t+6.2d

First public PoC 6.2 days after publication; not in CISA KEV. First PoC: paktiko1986/CVE-2026-96778-pillow (created 28 Oct 2026, found by us: 14 Nov 2026).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedFound by usStarsAssessment
paktiko1986/CVE-2026-96778-pillow 28 Oct 2026 +6.2 d 14 Nov 2026 0 PoC
Flags · score 15
  • no network code found (normal for a local exploit)

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.