CVSS 3.1
8.2 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HHigh (8.2) in python pillow. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.3.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Hpillow (PyPI): fixed in 12.3.0Explain CVE-2026-59197 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59197?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59197?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-59197 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:pillow | before 12.3.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xj96-63gp-2gmr | PyPI | pillow | <12.3.0 | 12.3.0 |
| PYSEC-2026-3454 | PyPI | pillow | <12.3.0 | 12.3.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | pillow | no fix listed | DEBIAN-CVE-2026-59197 |
| Debian | 14 | pillow | 12.3.0-1 | DEBIAN-CVE-2026-59197 |
| Ubuntu | 22.04:LTS | pillow | 9.0.1-1ubuntu0.6 | UBUNTU-CVE-2026-59197 USN-8999-1 |
| Ubuntu | 24.04:LTS | pillow | 10.2.0-1ubuntu1.4 | UBUNTU-CVE-2026-59197 USN-8999-1 |
| Ubuntu | 26.04:LTS | pillow | 12.1.1-2ubuntu1.4 | UBUNTU-CVE-2026-59197 USN-8999-1 |
| Ubuntu | Pro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS | pillow | no fix listed | UBUNTU-CVE-2026-59197 |
| Ubuntu | Pro:20.04:LTS | pillow, pillow-python2 | no fix listed | UBUNTU-CVE-2026-59197 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-controller-venv-tower | 0:4.6.31-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more | 0:1.1.21-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more | 0:2.5.10-7.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-aiohttp | 0:3.14.1-2.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-daphne | 0:4.2.2-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-pillow | 0:12.3.0-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-pyasn1 | 0:0.6.4-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el8 | receptor, receptorctl, receptor-debuginfo and 1 more | 0:1.6.7-1.el8ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-controller-venv-tower | 0:4.6.31-1.el9ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more | 0:1.1.21-1.el9ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more | 0:2.6.17-2.el9ap | RHSA-2026:50319 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-aiohttp | 0:3.14.1-2.el9ap | RHSA-2026:50319 |
| 37 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | python-Pillow | 9.5.0-150400.5.25.1 | SUSE-SU-2026:3268-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | python-Pillow | 7.2.0-150300.3.30.1 | SUSE-SU-2026:3084-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | python-Pillow | 11.3.0-160000.8.1 | SUSE-SU-2026:23217-1 SUSE-SU-2026:23228-1 |
| openSUSE | Leap 16.0 | python-Pillow | 11.3.0-160000.8.1 | openSUSE-SU-2026:21544-1 |
| AlmaLinux | 8 | python3-pillow, python3-pillow-tk, python3-pillow-doc and 1 more | 5.1.1-23.el8_10 | ALSA-2026:48021 |
| Rocky Linux | 8 | python-pillow | 0:5.1.1-23.el8_10 | RLSA-2026:48021 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Important.
Pillow's RankFilter API is vulnerable to a native heap out-of-bounds write when a caller supplies a very large odd filter size. Expansion runs before size validation and ImagingExpand uses unchecked signed integer arithmetic for output dimensions. A remote attacker who can drive RankFilter with attacker-controlled sizes may crash the process or corrupt heap memory. Fixed in Pillow 12.3.0.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-pillow-0:12.3.0-1.el8ap | Fixed 2026-08-04 | RHSA-2026:50319 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-pillow-0:12.3.0-1.el9ap | Fixed 2026-08-04 | RHSA-2026:50319 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-pillow-0:12.3.0-1.el9ap | Fixed 2026-08-04 | RHSA-2026:50336 |
| Red Hat Enterprise Linux 8 | python-pillow-0:5.1.1-23.el8_10 | Fixed 2026-07-29 | RHSA-2026:48021 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | python-pillow-0:5.1.1-15.el8_4.2 | Fixed 2026-08-10 | RHSA-2026:52551 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | python-pillow-0:5.1.1-15.el8_4.2 | Fixed 2026-08-10 | RHSA-2026:52551 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | python-pillow-0:5.1.1-20.el8_6.1 | Fixed 2026-08-13 | RHSA-2026:54528 |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | python-pillow-0:5.1.1-20.el8_6.1 | Fixed 2026-08-13 | RHSA-2026:54528 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | python-pillow-0:5.1.1-20.el8_8.1 | Fixed 2026-08-12 | RHSA-2026:54417 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | python-pillow-0:5.1.1-20.el8_8.1 | Fixed 2026-08-12 | RHSA-2026:54417 |
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Affected | |
| Lightspeed Core | lightspeed-core/lightspeed-stack-rhel9 | Affected | |
| Lightspeed Core | lightspeed-core/rag-tool-cpu-rhel9 | Affected | |
| Lightspeed Core | lightspeed-core/rag-tool-cuda-12.9-rhel9 | Affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | |
| Red Hat AI Inference Server | rhaiis/model-opt-cuda-rhel9 | Affected | |
| Red Hat AI Inference Server | rhaiis/vllm-cpu-rhel9 | Will not fix | |
| Red Hat AI Inference Server | rhaiis/vllm-cuda-rhel9 | Affected | |
| 82 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-59197.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.