CVE-2026-42311Python Pillow
High 8.6
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 4.0
- 8.6
- EPSS
- —
- Auth required
- Yes
- Published
- May 9, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/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. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
What to do
- Apply the vendor's security update for Pillow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 10.3.0 < 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
| PyPI | pillow |
≥ 10.3.0 < 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
Per OSV / GitHub Advisories (GHSA-pwv6-vv43-88gr, PYSEC-2026-2252). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≥ 10.3.0 < 12.2.0 |
Official advisories
- python313-Pillow-12.3.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11261-1 · Jul 12, 2026 Critical
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:21296-1 · Jul 10, 2026 High
- Security update for python-Pillow · SUSE · SUSE-SU-2026:22626-1 · Jul 10, 2026 High
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 Patch Vendor Advisory