CVE-2026-42311
Pillow: python-pillow: Pillow: Arbitrary code execution via malicious PSD file processing
Overview
Description
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-190, CWE-787
Affected packages · 2
Operating systems · 17 fixes
SUSE Linux Enterprise 1 release · 1 package
fixed 1
python313-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.6.1 | SUSE-SU-2026:22626-1 |
amazon linux 1 release · 1 package
fixed 1
python-pillow-debuginfo
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.8 |
chainguard 1 release · 4 packages
fixed 4
open-webui
kubeflow-pipelines-visualization-server
mlflow
superset-6-0
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| mlflow | 3.16.0-r0 | |
| superset-6-0 | 6.0.0-r10 |
debian 2 releases · 1 package
fixed 2
pillow
| Release | Package | Fixed in |
|---|---|---|
| 13 | pillow | 11.1.0-5+deb13u3 |
| 14 | pillow | 12.2.0-1 |
echo 1 release · 1 package
fixed 1
pillow
| Release | Package | Fixed in |
|---|---|---|
| pillow | 11.1.0-5+deb13u3 |
minimos 1 release · 2 packages
fixed 2
label-studio
litellm-1-83
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 | |
| litellm-1-83 | 1.83.10-r0 |
openSUSE 1 release · 1 package
fixed 1
python313-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python313-pillow +3 | 12.3.0-1.1 | openSUSE-SU-2026:11261-1 |
openSUSE Leap 1 release · 1 package
fixed 1
python313-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pillow +1 | 11.3.0-160000.6.1 | openSUSE-SU-2026:21296-1 |
ubuntu 1 release · 1 package
fixed 1
pillow
| Release | Package | Fixed in |
|---|---|---|
| 26.04 | pillow | 12.1.1-2ubuntu1.2 |
wolfi 1 release · 3 packages
fixed 3
open-webui
kubeflow-pipelines-visualization-server
superset-6-0
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.1-r0 | |
| superset-6-0 | 6.0.0-r10 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42311
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea
- github.com https://github.com/python-pillow/Pillow/pull/9520
- github.com https://github.com/python-pillow/Pillow/releases/tag/12.2.0
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc
- github.com https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42311
- ubuntu.com https://ubuntu.com/security/notices/USN-8399-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42311
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.