Feed
8.8HIGH

CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer

A high-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.6%
percentile 44%
Priority
25/100 medium
how it is computed
Fix
Named by a source
CVE published 21 Oct 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.6% (+1) · Network attack vector (+10) · No privileges required (+5) · CVSS 8.8: at least medium

Immediate actions

Who should check

  • pillow (PyPI) pkg:pypi/pillow

    • Affected>= 9.4.0, < 13.0.0Fixed in13.0.0OSV (GHSA-g7cr-3p24-7wf7)
  • python pillow product:python/pillow

    • Affected>= 9.4.0, < 13.0.0Affected range ends before13.0.0as published by CPE data (via the NVD API)
  • python-pillow Pillow product:pythonpillow/pillow

    • Affected>= 9.4.0, < 13.0.0Affected range ends before13.0.0as published by CNA (CVE List)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
8.8 HIGH (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-787
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)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.

Update history

  • 21 Oct 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 49 min ago · osv 49 min ago · nvd 49 min ago · epss 48 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-pillow-2026-96778, GHSA-g7cr-3p24-7wf7