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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.44% (37th 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-21277786
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditJoshua Rogers

Introduced: 19 Oct 2026

NewCVE-2026-112397  (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

Affected versions of this package are vulnerable to Out-of-bounds Write via the apply function in src/_imagingmorph.c when a MorphOp operation is applied to an image with zero width or zero height. The missing bounds check allows an attacker to trigger a crash by supplying an empty image to the ImageMorph morphological operation.

CVSS Base Scores

version 4.0
version 3.1