CVE-2026-59197Python Pillow
High 8.2 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Jul 14, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
| PyPI | pillow |
< 12.3.0 |
12.3.0 |
pip install "pillow>=12.3.0" |
Per OSV / GitHub Advisories (GHSA-xj96-63gp-2gmr, PYSEC-2026-3454). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 12.3.0 |
Official advisories
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:54528 · Aug 14, 2026 High
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:54417 · Aug 13, 2026 High
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:21544-1 · Aug 10, 2026 High
- Security update for python-Pillow · SUSE · SUSE-SU-2026:23217-1 · Aug 10, 2026 High
- Security update for python-Pillow · SUSE · SUSE-SU-2026:23228-1 · Aug 10, 2026 High
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:52551 · Aug 10, 2026 High
Also: Red Hat (+4), SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Exploit Vendor Advisory