CVE-2026-54058Python Pillow
High 8.3 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 65
- CVSS 4.0
- 8.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 14, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width, causing pixel access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. 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-62p4-gmf7-7g93, PYSEC-2026-3493). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 12.3.0 |
Official advisories
- python313-graphifyy-0.9.65-1.1 on GA media · SUSE · openSUSE-SU-2026:11839-1 · Sep 21, 2026 High
- 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
- Red Hat Security Advisory: python-pillow security update · Red Hat · RHSA-2026:52551 · Aug 10, 2026 High
Also: SUSE (+4), Red Hat (+1)
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 Product Release Notes
- github.com Exploit Mitigation Vendor Advisory