PT-2026-58105
CVE-2026-59197
·
Published
2026-07-14
·
Updated
2026-08-31
Description by
CVSS 2.0
8.5
HighMetricsAV:N/AC:L/Au:N/C:N/I:P/A:C
Name of the Vulnerable Software and Affected Versions
Pillow versions prior to 12.3.0
Description
The public rank-filter API in the Pillow Python imaging library allows a native heap out-of-bounds write when a very large odd filter size is provided. This occurs because the
ImageFilter.RankFilter.filter() function calls image.expand(size // 2, size // 2) before validating the rank-filter size, and the ImagingExpand() function calculates output dimensions using unchecked signed int arithmetic, which is a type of calculation that does not account for values exceeding the maximum limit of a signed integer.Recommendations
Update to version 12.3.0.
Found an issue in the description? Have something to add? Feel free to write us 👾