Buffer overflow in Python-pillow Pillow

CVE-2026-59197

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…

Vulnerability class: Integer Overflow

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-59197?
CVE-2026-59197 is a high-severity vulnerability in Python-pillow Pillow, classified under Integer Overflow or Wraparound. CVSS score: 8.2/10. Published 2026-07-14.
How severe is CVE-2026-59197?
High severity. CVSS v3 base score is 8.2 out of 10.