VDB

CVE-2026-96778

CVE-2026-96778 PUBLISHED CVSS 7.7 HIGH

Reported by GitHub_M · Published October 21, 2026

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.

Risk Scores

CVSS 4.0
7.7
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

Affected Products

VendorProductVersions
python-pillowPillow>= 9.4.0, < 13.0.0
chainguardsuperset-fips-6.10
chainguardnemo-rl-cuda-13.00
chainguardpy3-pytorch-cuda-13.00
python-pillowPillow9.4.0
PyPIPillow9.4.0
chainguardnemo-gym0

Timeline

  • Oct 21, 2026 CVE Published
  • Oct 22, 2026 CVE Updated
  • Oct 22, 2026 EPSS Score
  • Oct 22, 2026 Coalition ESS Score
  • Oct 25, 2026 EPSS Score
  • Oct 29, 2026 EPSS Score
  • Oct 30, 2026 Security Advisory
Open in Interactive Console →
$ Console Community · 50/day Open console ›