CVE-2026-42309
published medium CVSS 4.0 · 5.1Pillow: Heap buffer overflow with nested list coordinates
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| python-pillow | — | Pillow>= 11.2.1, < 12.2.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | python313-Pillowaarch64 | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| Ubuntu | questing | pillow | Advisory build | 11.3.0-1ubuntu1.3 | USN-8399-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowppc64le | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillows390x | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowx86_64 | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tks390x | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160000.5.1 | SUSE-SU-2026:21861-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowaarch64 | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowppc64le | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillows390x | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillowx86_64 | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tks390x | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160000.5.1 | OPENSUSE-SU-2026:20831-1 |
| Ubuntu | questing | python3-pil | Advisory build | 11.3.0-1ubuntu1.3 | USN-8399-1 |
| Ubuntu | questing | python3-pil.imagetk | Advisory build | 11.3.0-1ubuntu1.3 | USN-8399-1 |
| Ubuntu | resolute | pillow | Advisory build | 12.1.1-2ubuntu1.2 | USN-8399-1 |
| Ubuntu | resolute | python3-pil | Advisory build | 12.1.1-2ubuntu1.2 | USN-8399-1 |
| Ubuntu | resolute | python3-pil.imagetk | Advisory build | 12.1.1-2ubuntu1.2 | USN-8399-1 |
Description
Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| python-pillow | Pillow | >= 11.2.1, < 12.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
2Provider assertions
2GitHub_M · cna
Pillow: Heap buffer overflow with nested list coordinates
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 800889e2c291611fe5e35e1466208b5b0dc7a43e4eadf96f51d92c0a2482c7f0
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record