Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the…
Priority MEDIUM 41CWE-95Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-95.
Summary
Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01703 77th percentileScored 2026-11-07
Fix Fixed Pillow (PyPI): 10.2.0Red Hat: 7 advisories
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Pillow (PyPI) | before 10.2.0 | 10.2.0 | Patch available | GHSA-3f63-hfp8-52jq |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Pillow (PyPI) Vendor— Affected before 10.2.0 Fixed in 10.2.0 Patch available GHSA-3f63-hfp8-52jq
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* | up to 10.1.0 | Vulnerable | python-pillow |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions up to 10.1.0 Vulnerable ·python-pillow
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-3f63-hfp8-52jq Pillow (PyPI) Fixed in 10.2.0 Advisory →
Red Hat 7 advisories
- RHSA-2024:3781 Released 2024-06-10 · Red Hat rating ModerateRed Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower-4.5.7-1.el8ap, automation-hub-4.9.2-1.el8ap, python39-aiohttp-3.9.5-1.el8ap +25
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower-4.5.7-1.el9ap, automation-hub-4.9.2-1.el9ap, python-aiohttp-3.9.5-1.el9ap +25
- RHSA-2024:1058 Released 2024-02-29 · Red Hat rating Importantpython-pillow security update
- Red Hat CodeReady Linux Builder EUS (v.8.6) python3-pillow-5.1.1-19.el8_6, python3-pillow-devel-5.1.1-19.el8_6, python3-pillow-doc-5.1.1-19.el8_6 +1
- Red Hat Enterprise Linux AppStream EUS (v.8.6) python-pillow-5.1.1-19.el8_6, python3-pillow-5.1.1-19.el8_6
- RHSA-2024:1060 Released 2024-02-29 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux AppStream AUS (v.8.4) python-pillow-5.1.1-15.el8_4, python3-pillow-5.1.1-15.el8_4
- Red Hat Enterprise Linux AppStream E4S (v.8.4) python-pillow-5.1.1-15.el8_4, python3-pillow-5.1.1-15.el8_4
- Red Hat Enterprise Linux AppStream TUS (v.8.4) python-pillow-5.1.1-15.el8_4, python3-pillow-5.1.1-15.el8_4
Show 4 more Red Hat advisories
- RHSA-2024:1059 Released 2024-02-29 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux AppStream AUS (v. 8.2) python-pillow-5.1.1-15.el8_2, python3-pillow-5.1.1-15.el8_2
- RHSA-2024:0893 Released 2024-02-20 · Red Hat rating Importantpython-pillow security update
- Red Hat CodeReady Linux Builder (v. 8) python3-pillow-5.1.1-18.el8_9.1, python3-pillow-devel-5.1.1-18.el8_9.1, python3-pillow-doc-5.1.1-18.el8_9.1 +1
- Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-18.el8_9.1, python3-pillow-5.1.1-18.el8_9.1
- RHSA-2024:0857 Released 2024-02-19 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux Client (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9
- Red Hat Enterprise Linux Client Optional (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9, python-pillow-devel-2.0.0-25.gitd1c6db8.el7_9, python-pillow-doc-2.0.0-25.gitd1c6db8.el7_9 +3
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9, python-pillow-devel-2.0.0-25.gitd1c6db8.el7_9, python-pillow-doc-2.0.0-25.gitd1c6db8.el7_9 +3
- Red Hat Enterprise Linux Server (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9, python-pillow-2.0.0-25.gitd1c6db8.el7_9.ppc, python-pillow-devel-2.0.0-25.gitd1c6db8.el7_9 +5
- Red Hat Enterprise Linux Workstation (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9
- Red Hat Enterprise Linux Workstation Optional (v. 7) python-pillow-2.0.0-25.gitd1c6db8.el7_9, python-pillow-devel-2.0.0-25.gitd1c6db8.el7_9, python-pillow-doc-2.0.0-25.gitd1c6db8.el7_9 +3
- RHSA-2024:0754 Released 2024-02-08 · Red Hat rating Importantpython-pillow security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) python3-pillow-5.1.1-19.el8_8, python3-pillow-devel-5.1.1-19.el8_8, python3-pillow-doc-5.1.1-19.el8_8 +1
- Red Hat Enterprise Linux AppStream EUS (v.8.8) python-pillow-5.1.1-19.el8_8, python3-pillow-5.1.1-19.el8_8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Fixed | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Fixed | RHSA-2024:3781 |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2024:0893 |
| Red Hat CodeReady Linux Builder EUS (v.8.6) | Fixed | RHSA-2024:1058 |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:0754 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:0893 |
| Red Hat Enterprise Linux AppStream AUS (v. 8.2) | Fixed | RHSA-2024:1059 |
| Red Hat Enterprise Linux AppStream AUS (v.8.4) | Fixed | RHSA-2024:1060 |
| Red Hat Enterprise Linux AppStream E4S (v.8.4) | Fixed | RHSA-2024:1060 |
| Red Hat Enterprise Linux AppStream EUS (v.8.6) | Fixed | RHSA-2024:1058 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:0754 |
| Red Hat Enterprise Linux AppStream TUS (v.8.4) | Fixed | RHSA-2024:1060 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2024:0857 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2024:0857 |
Not affected: 2 products
- Red Hat Ansible Automation Platform 2.4 for RHEL 8
- Red Hat Ansible Automation Platform 2.4 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2023-50447
- 2026-10-03 Alias added: GHSA-3f63-hfp8-52jq
References
Advisory 4
Other 8
- https://github.com/python-pillow/Pillow/releases
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/
- https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
- https://devhub.checkmarx.com/cve-details/CVE-2023-50447
- https://duartecsantos.github.io/2023-01-02-CVE-2023-50447
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447
- https://github.com/python-pillow/Pillow
- https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security
Sources
- CVE-2023-50447 · CVE Program
- CVE-2023-50447 · NVD
- FIRST EPSS
- GHSA-3f63-hfp8-52jq · GitHub Advisory Database · CC BY 4.0
- CVE-2023-50447 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences