CVE-2026-59197
Pillow: Pillow: Native heap out-of-bounds write
Overview
Description
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.
Source: OX vulnerability database
Severity
8.2 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness: CWE-190, CWE-787
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | pillow | <12.3.0 | 12.3.0 |
| PyPI | pillow | <12.3.0 | 12.3.0 |
| Seal PyPI | pillow | >=10.0.1+sp0, <10.0.1+sp999>=7.2.0+sp0, <7.2.0+sp999>=9.3.0+sp0, <9.3.0+sp999>=9.5.0+sp0, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
| Seal PyPI | seal-pillow | >=10.0.1+sp1, <10.0.1+sp999>=7.2.0+sp1, <7.2.0+sp999>=9.3.0+sp1, <9.3.0+sp999>=9.5.0+sp1, <9.5.0+sp999 | 10.0.1+sp9997.2.0+sp9999.3.0+sp9999.5.0+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 48 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-23.el8_10 |
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-pillow | affected | — |
| 7 (satellite:el8) | python-pillow | affected | — |
| 8 | python3-pillow | 0:5.1.1-15.el8_4.2 | RHSA-2026:52551 |
| 8 | python3-pillow | 0:5.1.1-20.el8_6.1 | RHSA-2026:54528 |
| 8 | python3-pillow | 0:5.1.1-20.el8_8.1 | RHSA-2026:54417 |
| 8 | python3-pillow +3 | 0:5.1.1-23.el8_10 | RHSA-2026:48021 |
SUSE Linux Enterprise 5 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pillow +1 | 9.5.0-150400.5.25.1 | SUSE-SU-2026:3268-1 |
| 15.5 | python311-pillow +1 | 9.5.0-150400.5.25.1 | SUSE-SU-2026:3268-1 |
| 15.6 | python311-pillow +1 | 9.5.0-150400.5.25.1 | SUSE-SU-2026:3268-1 |
| 15.7 | python3-pillow | 7.2.0-150300.3.30.1 | SUSE-SU-2026:3084-1 |
| 15.7 | python311-pillow +1 | 9.5.0-150400.5.25.1 | SUSE-SU-2026:3268-1 |
| 16.0 | python313-pillow +1 | 11.3.0-160000.8.1 | SUSE-SU-2026:23217-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-23.el8_10 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.10 |
chainguard 1 release · 13 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| lmcache-cuda-12-8 | 0.5.3-r0 | |
| label-studio | 1.23.0-r11 | |
| tensorflow-gpu-jupyter | 2.21.0-r7 | |
| tritonserver-backend-vllm-cuda-13-0 | 25.11-r11 | |
| openstack-horizon-2025-2 | 25.5.2_git20260617-r4 |
7 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | pillow | affected |
| 12 | pillow | affected |
| 13 | pillow | affected |
| 14 | pillow | 12.3.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pillow | affected |
minimos 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| vllm-cu129 +1 | 0.25.0-r0 | |
| label-studio | 1.23.1-r0 | |
| acapy-agent-1-3 | 1.3.4-r1 | |
| acapy-agent-1-6 | 1.6.1-r0 | |
| litellm-1-83 | 1.83.10-r0 | |
| mlflow | 3.14.0-r1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.8.1 | openSUSE-SU-2026:21544-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow | 5.1.1-23.el8_10 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | libsolv +1 | 0.7.20-6.el8+sp999 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | pillow | 9.0.1-1ubuntu0.6 |
| 24.04 | pillow | 10.2.0-1ubuntu1.4 |
| 26.04 | pillow | 12.1.1-2ubuntu1.4 |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| superset-6-0 | 6.0.0-r13 | |
| superset-6-1 | 6.1.0-r6 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:48021
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-59197
- bugzilla.redhat.com https://bugzilla.redhat.com/2500043
- bugzilla.redhat.com https://bugzilla.redhat.com/2500057
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2500043
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2500057
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-54058
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-59197
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2026-48021.html
Show all 21 references
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:48021
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/cce3bdb867c77a3420261ed1bfdb6b0787ec8fc1
- github.com https://github.com/python-pillow/Pillow/pull/9695
- github.com https://github.com/python-pillow/Pillow/releases/tag/12.3.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-xj96-63gp-2gmr
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-59197.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-48021.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-59197
- ubuntu.com https://ubuntu.com/security/notices/USN-8999-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-59197
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.