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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-10-21T21:06:42.111Z
- Modified: 2026-10-29T11:17:39.023Z
- Also known as: GHSA-v9pv-5gc8-w2m6, BIT-PILLOW-2026-96639, PYSEC-2026-4339
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 11.0.0, < 13.0.0
- pillow (PyPI): from 11.0.0 before 13.0.0
- python pillow: from 11.0.0 before 13.0.0
- pillow (Bitnami): from 11.0.0 before 13.0.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-v9pv-5gc8-w2m6> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/10105> (issue-tracking, report, web)
- <https://github.com/python-pillow/Pillow/commit/78d97d994579aef81aafe123773d525f40f2522a> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96639> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-96639](https://www.cve.org/CVERecord?id=CVE-2026-96639), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-v9pv-5gc8-w2m6](https://github.com/advisories/GHSA-v9pv-5gc8-w2m6), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-96639](https://nvd.nist.gov/vuln/detail/CVE-2026-96639), Public domain, modified 2026-10-29
- PyPA Advisory Database: [PYSEC-2026-4339](https://osv.dev/vulnerability/PYSEC-2026-4339), CC-BY-4.0, modified 2026-10-29
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-96639](https://osv.dev/vulnerability/BIT-PILLOW-2026-96639), Apache-2.0, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-96639 · Whole record: https://cve.day/CVE-2026-96639.json · Rebuilt by cve.day 2026-11-25T22:59:46.694Z
