CVEfocus › CVE database › CVE-2026-96639

CVE-2026-96639Pillow multi-frame loaders can reuse stale native image storage after mode transitions

CVSS 9.8 CriticalEPSS 1.0% (higher than 61% of CVEs)Published 2026-10-21Updated 2026-10-29Assigner: GitHub_M

Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.

CWE-125CWE-787

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Debian has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pillowFixed12.3.0-1ubuntu2UBUNTU-CVE-2026-96639
Ubuntu 26.04pillowFixed12.1.1-2ubuntu1.5UBUNTU-CVE-2026-96639
Ubuntu 24.04pillowNot affected
vulnerable_code_not_present
Ubuntu 22.04pillowNot affected
vulnerable_code_not_present
Debian 14pillowFixed13.0.0-1DEBIAN-CVE-2026-96639
Debian 13pillowFix pendingDEBIAN-CVE-2026-96639
Debian 12pillowFix pendingDEBIAN-CVE-2026-96639
Red Hat Enterprise Linux 8python-pillowNot affected
Red Hat Enterprise Linux 8python3-pillowNot affected
Red Hat Enterprise Linux 8python3-pillow-develNot affected
Red Hat Enterprise Linux 8python3-pillow-docNot affected
Red Hat Enterprise Linux 8python3-pillow-tkNot affected
PyPI librarypillowFixed13.0.0GHSA-v9pv-5gc8-w2m6

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.