CVE-2026-96639
pillow: Pillow multi-frame loaders can reuse stale native image storage after mode transitions
Overview
Description
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: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-125, CWE-787
Affected packages · 2
Operating systems · 18 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-pillow | affected |
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.9.1 | SUSE-SU-2026:24656-1 |
| 16.1 | python313-pillow +1 | 11.3.0-160100.3.1 | SUSE-SU-2026:24701-1 |
chainguard 1 release · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| nemo-gym | 0.5.0_rc0_git20260729-r6 | |
| nemo-rl-cuda-13-0 | 0.7.0-r11 | |
| nemo-skills | 0.7.0_git20260911-r5 | |
| py3-pytorch-cuda-13-0 | 2.14.1-r2 | |
| mlflow | 3.17.2-r2 | |
| mlflow-fips | 3.17.2-r3 |
1 more row
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | pillow | affected |
| 12 | pillow | affected |
| 13 | pillow | affected |
| 14 | pillow | 13.0.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pillow | affected |
openSUSE Leap 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.9.1 | openSUSE-SU-2026:22246-1 |
| 16.1 | python313-pillow +1 | 11.3.0-160100.3.1 | openSUSE-SU-2026:22301-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 26.04 | pillow | 12.1.1-2ubuntu1.5 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-96639
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/78d97d994579aef81aafe123773d525f40f2522a
- github.com https://github.com/python-pillow/Pillow/pull/10105
- github.com https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-v9pv-5gc8-w2m6
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-96639
- ubuntu.com https://ubuntu.com/security/notices/USN-9064-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-96639
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.