Live threats

All CVEs / Python

CVE-2026-96639Python Pillow

Out-of-bounds write in Pillow multi-frame loaders

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Oct 21, 2026
Updated
Oct 29, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125, CWE-787
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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 13.0.0

Update Pillow to version 13.0.0 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pythonpillow≥ 11.0.0 < 13.0.0

Official advisories

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.