Vulnerability
CVE-2026-96778
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.
48 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2023-2026-3411
Amazon Linux 2023 - ALAS2023-2026-3411: Important priority package update for python-pillow
- CGA-268f-fcr3-6qp3
- CGA-2cr4-xfjr-qg47
- CGA-4xw2-h7cx-4hcq
- CGA-5966-wvw8-6fr4
- CGA-5h4w-jf2r-p93p
- CGA-7mxr-r7pw-75rv
- CGA-858c-qfvj-6c58
- CGA-85j9-wxr2-q8vm
- CGA-8j7m-9wg2-m32x
- CGA-9c6x-fh72-xhxw
- CGA-chmp-f4p6-hxmf
- CGA-fj8c-hjm2-g2g2
- CGA-g4fj-gfcm-rw42
- CGA-gqj3-hw83-j554
- CGA-grx9-7rgj-2v4m
- CGA-h723-xjg7-jr7q
- CGA-jvhx-q28v-56mf
- CGA-m593-9crg-pq3w
- CGA-mh2v-vj2j-v8q3
- CGA-p4hf-5c7v-r96v
- CGA-p4jr-3fmh-hm33
- CGA-pqch-pm4m-8p75
- CGA-q665-3979-mfhj
- CGA-q93c-8cx4-vv2p
- CGA-qg57-8pjh-v2p4
- CGA-qg75-cv75-jpw4
- CGA-rmhv-3f67-7qpm
- CGA-vhjm-x8rc-xrrc
- CGA-w8fp-7456-cr7w
- CGA-wc7x-8cw2-gf79
- CGA-xg69-8j2c-vc8r
- CGA-xvvq-6vv7-gpvv
-
DEBIAN-CVE-2026-96778
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…
-
GHSA-g7cr-3p24-7wf7
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
-
RHSA-2026:100715
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:92861
Red Hat Security Advisory: Satellite 6.19 security update
-
RHSA-2026:95655
Red Hat Security Advisory: Satellite 6.16 EUS security update
-
RHSA-2026:95656
Red Hat Security Advisory: Satellite 6.17 security update
-
RHSA-2026:95657
Red Hat Security Advisory: Satellite 6.18 security update
-
SUSE-SU-2026:24656-1
Security update for python-Pillow
-
SUSE-SU-2026:24701-1
Security update for python-Pillow
-
SUSE-SU-2026:5194-1
Security update for python-Pillow
-
UBUNTU-CVE-2026-96778
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…
-
USN-9064-1
pillow vulnerabilities
-
openSUSE-SU-2026:12251-1
python313-Pillow-13.0.0-2.1 on GA media
-
openSUSE-SU-2026:22246-1
Security update for python-Pillow
-
openSUSE-SU-2026:22301-1
Security update for python-Pillow