CVE-2026-59197

HIGH CVSS 3.1: 8.2 EPSS 0.45%
Updated Jul 21, 2026
Python
Parameter Value
CVSS 8.2 (HIGH)
Affected Versions before 12.3.0
Fixed In 12.3.0
Type CWE-190 (Integer Overflow), CWE-787 (Out-of-bounds Write)
Vendor Python
Public PoC No

Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.

Attack Parameters

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

Impact Assessment

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

CVSS Vector v3.1

Vulnerable Products 1

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