CVE-2026-96639Python Pillow
Out-of-bounds write in Pillow multi-frame loaders
Critical 9.8 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Oct 21, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Pillow versions 11.0.0 through 12.x contain a vulnerability in multi-frame loaders (PSD, MPO, DCX, MIC) that reuse stale memory allocations without validating mode changes. An attacker can send crafted image files to trigger out-of-bounds writes, causing crashes or remote code execution without authentication.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 13.0.0
Update Pillow to version 13.0.0 or later.
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 11.0.0 < 13.0.0 |
13.0.0 |
pip install "pillow>=13.0.0" |
| PyPI | pillow |
≥ 11.0.0 < 13.0.0 |
13.0.0 |
pip install "pillow>=13.0.0" |
Per OSV / GitHub Advisories (GHSA-v9pv-5gc8-w2m6, PYSEC-2026-4339). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≥ 11.0.0 < 13.0.0 |
Official advisories
- Security update for python-Pillow · SUSE · SUSE-SU-2026:24701-1 · Nov 5, 2026 Critical
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:22301-1 · Nov 5, 2026 Critical
- Security update for python-Pillow · SUSE · SUSE-SU-2026:24656-1 · Nov 5, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
On social media
1 person and 1 post on Bluesky in the last 30 days.
Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking
- github.com Release Notes
- github.com Vendor Advisory