Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-96778

pillow: pillow: Arbitrary code execution via JPEG encoder buffer overflow

Overview

Published
21 Oct 2026
Modified
28 Oct 2026
High CVE
4 Registry packages
23 OS packages
9 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

8.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness: CWE-787

Affected packages · 4

Packages affected by CVE-2026-96778
EcosystemPackageVulnerableFixed in
Bitnami pillow >=9.4.0, <13.0.0 13.0.0
PyPI pillow >=9.4.0, <13.0.0 13.0.0
Seal PyPI pillow >=10.0.1+sp0, <10.0.1+sp999>=9.5.0+sp0, <9.5.0+sp999 10.0.1+sp9999.5.0+sp999
Seal PyPI seal-pillow >=10.0.1+sp1, <10.0.1+sp999>=9.5.0+sp1, <9.5.0+sp999 10.0.1+sp9999.5.0+sp999

Open a package to see all its vulnerabilities.

Operating systems · 25 fixes

Red Hat 1 release · 1 package

affected 1
python-pillow
Red Hat fixes for CVE-2026-96778
ReleasePackageFixed in
7 python-pillow +1 affected

SUSE Linux Enterprise 6 releases · 2 packages

fixed 6
python311-pillow python313-pillow
SUSE Linux Enterprise fixes for CVE-2026-96778
ReleasePackageFixed inAdvisory
15.4 python311-pillow +1 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
15.5 python311-pillow +1 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
15.6 python311-pillow +1 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
15.7 python311-pillow +1 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
16.0 python313-pillow +1 11.3.0-160000.9.1 SUSE-SU-2026:24656-1
16.1 python313-pillow +1 11.3.0-160100.3.1 SUSE-SU-2026:24701-1

amazon linux 1 release · 1 package

fixed 1
python-pillow-debuginfo
amazon linux fixes for CVE-2026-96778
ReleasePackageFixed in
2023 python-pillow-debuginfo +6 9.4.0-2.amzn2023.0.12

chainguard 1 release · 7 packages

fixed 7
nemo-gym nemo-rl-cuda-13-0 nemo-skills py3-pytorch-cuda-13-0 mlflow mlflow-fips +1
chainguard fixes for CVE-2026-96778
ReleasePackageFixed in
nemo-gym 0.5.0_rc0_git20260729-r6
nemo-rl-cuda-13-0 0.7.0-r11
nemo-skills 0.7.0_git20260911-r5
py3-pytorch-cuda-13-0 2.14.1-r2
mlflow 3.17.2-r2
mlflow-fips 3.17.2-r3

1 more row

debian 4 releases · 1 package

affected 3 fixed 1
pillow
debian fixes for CVE-2026-96778
ReleasePackageFixed in
11 pillow affected
12 pillow affected
13 pillow affected
14 pillow 13.0.0-1

echo 1 release · 1 package

affected 1
pillow
echo fixes for CVE-2026-96778
ReleasePackageFixed in
pillow affected

openSUSE 1 release · 1 package

fixed 1
python313-pillow
openSUSE fixes for CVE-2026-96778
ReleasePackageFixed inAdvisory
Tumbleweed python313-pillow +3 13.0.0-2.1 openSUSE-SU-2026:12251-1

openSUSE Leap 2 releases · 1 package

fixed 2
python313-pillow
openSUSE Leap fixes for CVE-2026-96778
ReleasePackageFixed inAdvisory
16.0 python313-pillow +1 11.3.0-160000.9.1 openSUSE-SU-2026:22246-1
16.1 python313-pillow +1 11.3.0-160100.3.1 openSUSE-SU-2026:22301-1

ubuntu 2 releases · 1 package

fixed 2
pillow
ubuntu fixes for CVE-2026-96778
ReleasePackageFixed in
24.04 pillow 10.2.0-1ubuntu1.5
26.04 pillow 12.1.1-2ubuntu1.5

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.