CVE-2026-112397

HIGH CVSS 4.0: 8.7 EPSS 0.53%
Updated Oct 28, 2026
Python
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions before 13.0.0
Fixed In 13.0.0
Type CWE-787 (Out-of-bounds Write)
Vendor Python
Public PoC No

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry.

An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Python Pillow
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
— 13.0.0