CVE-2026-59197
Published:July 14, 2026
Updated:August 04, 2026
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.
Affected Packages
pillow (CONDA):
Affected version(s) >=2.1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (CONDA):
Affected version(s) >=2.1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0https://github.com/python-pillow/Pillow.git (GITHUB):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (PYTHON):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0pillow (PYTHON):
Affected version(s) >=1.0 <12.3.0Fix Suggestion:
Update to version 12.3.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
HIGH
EPSS
Base Score:
0.44