PT-2026-58105 · Pypi+1 · Pillow+1

CVE-2026-59197

·

Published

2026-07-14

·

Updated

2026-08-31

CVSS v2.0

8.5

High

VectorAV: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.

Exploit

Fix

DoS

Memory Corruption

Integer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2026:48021
BDU:2026-11288
BIT-PILLOW-2026-59197
CVE-2026-59197
ECHO-5231-1622-6E83
GHSA-XJ96-63GP-2GMR
OESA-2026-3137
OESA-2026-3138
OESA-2026-3185
OESA-2026-3186
OESA-2026-3189
OPENSUSE-SU-2026:21544-1
PYSEC-2026-3454
RHSA-2026:50223
RHSA-2026:50319
RHSA-2026:50336
RHSA-2026:52551
SUSE-SU-2026:23217-1
SUSE-SU-2026:23228-1
SUSE-SU-2026:3084-1
SUSE-SU-2026:3268-1

Affected Products

Pillow
Rocky Linux