Skip to content
OpenAdvisories
Critical · 9.2 Public exploit CVE-2026-112398 BIT-pillow-2026-112398EUVD-2026-104634GHSA-5x8w-8jj5-q52hPYSEC-2026-4330

Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution

Published Oct 19, 2026 · Updated Oct 22, 2026 · Assigned by GitHub_M

Description

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.

Affected products

VendorProductAffectedFixed
python-pillow Pillow < 13.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pillow No fix yet —
Debian 13 pillow No fix yet —
Debian 12 pillow No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pillow 12.3.0-1ubuntu2 USN-9064-1
Ubuntu 26.04 LTS pillow 12.1.1-2ubuntu1.5 USN-9064-1
Ubuntu 24.04 LTS pillow 10.2.0-1ubuntu1.5 USN-9064-1
Ubuntu 22.04 LTS pillow 9.0.1-1ubuntu0.7 USN-9064-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow 7.0.0-4ubuntu0.9+esm2 USN-9064-1
Ubuntu Pro 20.04 LTS pillow-python2 No fix yet —
Ubuntu Pro 18.04 LTS pillow 5.1.0-1ubuntu0.8+esm3 USN-9064-1
Ubuntu Pro 16.04 LTS pillow 3.1.2-0ubuntu1.6+esm4 USN-9064-1
Ubuntu Pro 14.04 LTS pillow 2.3.0-1ubuntu3.4+esm6 USN-9064-1
ReleasePackageFixed inAdvisory
RHEL 8 python-pillow +4 5.1.1-36.el8_10 RHSA-2026:93077
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 openvox-agent 8.31.1-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 openvox-server 8.17.0-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-brotli +1 1.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-django +1 4.2.30-2.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-gitpython +1 3.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-pillow +1 13.0.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python-pyyaml +1 6.0.1-1.el8pc RHSA-2026:95655
Red Hat Satellite Capsule 6 python-urllib3 +1 2.8.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite Capsule 6 python3.12-brotli 1.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-django 4.2.30-3.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-gitpython 3.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-pillow 13.0.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-pulp-ansible 1:0.28.10-1.el9pc RHSA-2026:92861
Red Hat Satellite Capsule 6 python3.12-urllib3 2.8.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 openvox-agent 8.31.1-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 openvox-server 8.17.0-1.el9sat RHSA-2026:95657, RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-brotli +1 1.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-django +1 4.2.30-2.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-gitpython +1 3.2.1-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-pillow +1 13.0.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python-pyyaml +1 6.0.1-1.el8pc RHSA-2026:95655
Red Hat Satellite 6 python-urllib3 +1 2.8.0-1.el8pc RHSA-2026:95656, RHSA-2026:95655
Red Hat Satellite 6 python3.12-brotli 1.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-django 4.2.30-3.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-gitpython 3.2.1-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-pillow 13.0.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 python3.12-pulp-ansible 1:0.28.10-1.el9pc RHSA-2026:92861
Red Hat Satellite 6 python3.12-urllib3 2.8.0-1.el9pc RHSA-2026:95657, RHSA-2026:92861
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.1.1-1.el9sat RHSA-2026:92861
RHEL 8.8 TUS python-pillow +1 5.1.1-20.el8_8.2 RHSA-2026:98109
RHEL 8.8 E4S python-pillow +1 5.1.1-20.el8_8.2 RHSA-2026:98109
RHEL 8.6 EUS Long Life python-pillow +1 5.1.1-20.el8_6.2 RHSA-2026:98111
RHEL 8.6 AUS python-pillow +1 5.1.1-20.el8_6.2 RHSA-2026:98111
RHEL 8.4 EUS Long Life python-pillow +1 5.1.1-15.el8_4.3 RHSA-2026:98120
RHEL 8.4 AUS python-pillow +1 5.1.1-15.el8_4.3 RHSA-2026:98120

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 python3-pillow +3 5.1.1-36.el8_10 ALSA-2026:93077

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 python-pillow 5.1.1-36.el8_10 RLSA-2026:93077
ReleasePackageFixed inAdvisory
SLES 15 SP7 python-Pillow 7.2.0-150300.3.33.1 SUSE-SU-2026:5038-1
SLES 15 SP6 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES 15 SP5 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES 15 SP4 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES 3 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-Pillow 11.3.0-160000.9.1 SUSE-SU-2026:24656-1
SLES for SAP 15 SP6 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES for SAP 15 SP5 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES for SAP 15 SP4 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLES 16.0 python-Pillow 11.3.0-160000.9.1 SUSE-SU-2026:24656-1
SLE HPC 15 SP5 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
SLE HPC 15 SP4 python-Pillow 9.5.0-150400.5.28.1 SUSE-SU-2026:5194-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Pillow 13.0.0-1.1 openSUSE-SU-2026:12230-1
openSUSE Leap 16.0 python-Pillow 11.3.0-160000.9.1 openSUSE-SU-2026:22246-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-pillow +2 9.4.0-2.amzn2023.0.12 ALAS2023-2026-3411
Amazon Linux 2 python-pillow +4 2.0.0-23.gitd1c6db8.amzn2.0.21 ALAS2-2026-4075

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 python3-pillow +3 5.1.1-36.el8_10 ELSA-2026-93077

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui +1 No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 13.0.0 13.0.0 GHSA-5x8w-8jj5-q52h

Advisories 20

References