Back to CVE records
Critical 9.8Published Oct 21, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects python-pillow Pillow and 1 other product. Add what you run to find out whether that includes you.

EPSS puts the chance of exploitation in the next 30 days at 0.67%, higher than 52% of scored CVEs.

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.

CVSS
9.8 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-125, CWE-787
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
0.67% (percentile 52)
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Oct 21, 2026
First seen by InfoSec Signals
Oct 21, 2026

Affected products

Affected products
python-pillow Pillow
python_pillow:pillow (from the name)
from 11.0.0, < 13.0.0
CNA record
python pillow
python:pillow
from 11.0.0 before 13.0.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.