Out-of-bounds Write Affecting pillow package, versions [11.0.0,13.0.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.67% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PILLOW-21460715
  • published23 Oct 2026
  • disclosed22 Oct 2026
  • creditRotem Kama

Introduced: 22 Oct 2026

NewCVE-2026-96639  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Pillow to version 13.0.0 or higher.

Overview

Pillow is a PIL (Python Imaging Library) fork.

Affected versions of this package are vulnerable to Out-of-bounds Write via the seek() method in multiple multi-frame image format plugins (DCX, JPEG, MIC, MPO, PSD), when an image's mode or size changes between frames during a seek operation. The internal core image buffer (_im) is not cleared when these attributes change, leaving a stale, mismatched buffer in place. An attacker who supplies a multi-frame image where frame dimensions or color mode differ across frames can trigger memory corruption or achieve arbitrary code execution by causing the image processing pipeline to operate on an incorrectly sized or typed core buffer.

CVSS Base Scores

version 4.0
version 3.1