Description
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).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pillow | 10.2.0-1 | — |
| Debian 13 | pillow | 10.2.0-1 | — |
| Debian 12 | pillow | 9.4.0-1.1+deb12u1 | DSA-5704-1 |
| Debian 11 | pillow | 8.1.2+dfsg-0.3+deb11u2 | DSA-5704-1 |
| Debian 10 | pillow | 5.4.1-2+deb10u4 | DLA-3724-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | pillow | 10.2.0-1 | — |
| Ubuntu 22.04 LTS | pillow | 9.0.1-1ubuntu0.2 | USN-6618-1 |
| Ubuntu 20.04 LTS | pillow | 7.0.0-4ubuntu0.8 | USN-6618-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pillow-python2 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pillow | 5.1.0-1ubuntu0.8+esm2 | — |
| Ubuntu Pro 16.04 LTS | pillow | 3.1.2-0ubuntu1.6+esm3 | — |
| Ubuntu Pro 14.04 LTS | pillow | 2.3.0-1ubuntu3.4+esm5 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | python-pillow +4 | 5.1.1-18.el8_9.1 | RHSA-2024:0893 |
| RHEL 7 | python-pillow +5 | 2.0.0-25.gitd1c6db8.el7_9 | RHSA-2024:0857 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.8 EUS | python-pillow +4 | 5.1.1-19.el8_8 | RHSA-2024:0754 |
| RHEL 8.6 EUS | python-pillow +4 | 5.1.1-19.el8_6 | RHSA-2024:1058 |
| RHEL 8.4 TUS | python-pillow +1 | 5.1.1-15.el8_4 | RHSA-2024:1060 |
| RHEL 8.4 E4S | python-pillow +1 | 5.1.1-15.el8_4 | RHSA-2024:1060 |
| RHEL 8.4 AUS | python-pillow +1 | 5.1.1-15.el8_4 | RHSA-2024:1060 |
| RHEL 8.2 AUS | python-pillow +1 | 5.1.1-15.el8_2 | RHSA-2024:1059 |
| Red Hat Ansible Automation Platform Inside 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Inside 2 | receptor +1 | 1.4.8-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-idna +1 | 3.7-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python-requests +1 | 2.32.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-idna +1 | 3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | python39-requests +1 | 2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform Developer 2 | receptor +1 | 1.4.8-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | automation-controller-venv-tower | 4.5.7-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | automation-hub +2 | 4.9.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-aiohttp +1 | 3.9.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-black +1 | 22.8.0-2.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-cryptography +1 | 42.0.5-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-galaxy-ng +1 | 4.9.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-gunicorn +1 | 22.0.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-idna +1 | 3.7-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-jinja2 +1 | 3.1.4-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-pillow +1 | 10.3.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-pydantic +1 | 1.10.15-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-requests +1 | 2.32.2-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-social-auth-app-django +1 | 5.4.1-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python-sqlparse +1 | 0.5.0-1.el9ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-aiohttp +1 | 3.9.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-black +1 | 22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-cryptography +1 | 42.0.5-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-gunicorn +1 | 22.0.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-idna +1 | 3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-jinja2 +1 | 3.1.4-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-pillow +1 | 10.3.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-pydantic +1 | 1.10.15-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-requests +1 | 2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-social-auth-app-django +1 | 5.4.1-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | python39-sqlparse +1 | 0.5.0-1.el8ap | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2 | receptor +1 | 1.4.8-1.el8ap | RHSA-2024:3781 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | python3-pillow +3 | 5.1.1-18.el8_9.1.alma.1 | ALSA-2024:0893 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | python-Pillow | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
| SLES 3 | python-Pillow | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP4 | python-Pillow | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
| SLE HPC 15 SP4 | python-Pillow | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
| SUSE Package Hub 15 SP5 | python-Pillow | 8.4.0-bp155.3.3.1 | openSUSE-SU-2024:0125-1 |
| SUSE OpenStack Cloud Crowbar 9 | python-Pillow | 5.2.0-3.23.1 | SUSE-SU-2024:0439-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-Pillow | 4.2.1-3.26.1 | SUSE-SU-2024:0290-1 |
| SUSE OpenStack Cloud 9 | python-Pillow | 5.2.0-3.23.1 | SUSE-SU-2024:0439-1 |
| SUSE OpenStack Cloud 8 | python-Pillow | 4.2.1-3.26.1 | SUSE-SU-2024:0290-1 |
| SUSE HPE Helion OpenStack 8 | python-Pillow | 4.2.1-3.26.1 | SUSE-SU-2024:0290-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pillow | 10.2.0-1.1 | openSUSE-SU-2026:11261-1, openSUSE-SU-2024:13611-1 |
| openSUSE Leap 15.5 | python-Pillow | 7.2.0-150300.3.6.1 | openSUSE-SU-2024:0125-1, SUSE-SU-2024:0205-1, SUSE-SU-2024:0185-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-pillow | 10.2.0-r0 | — |
| Alpine v3.23 | py3-pillow | 10.2.0-r0 | — |
| Alpine v3.22 | py3-pillow | 10.2.0-r0 | — |
| Alpine v3.21 | py3-pillow | 10.2.0-r0 | — |
| Alpine v3.20 | py3-pillow | 10.2.0-r0 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-pillow | 10.2.0-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-pillow +2 | 9.4.0-2.amzn2023.0.4 | ALAS2023-2024-512 |
| Amazon Linux 2 | python-pillow +4 | 2.0.0-23.gitd1c6db8.amzn2.0.10 | ALAS2-2024-2444 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | python3-pillow +3 | 5.1.1-18.el8_9.1 | ELSA-2024-0893 |
| Oracle Linux 7 | python-pillow +5 | 2.0.0-25.gitd1c6db8.el7_9 | ELSA-2024-0857 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubeflow-pipelines-visualization-server | 2.4.1-r2 | — |
| Wolfi rolling | py3-pillow | 10.2.0-r0 | — |
| Wolfi rolling | py3-seaborn +5 | 0.13.2-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | < 10.2.0 | 10.2.0 | GHSA-3f63-hfp8-52jq |
Advisories 32
- ALSA-2024:0893 Important: python-pillow security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-1328 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- RHSA-2024:3781 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- RHSA-2024:1058 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:0754 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:0893 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:0857 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:1059 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 3, 2026
- RHSA-2024:1060 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 3, 2026
- USN-6618-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- WID-SEC-2024-0337 Red Hat Enterprise Linux (Pillow): Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Mar 30, 2026
- DSA-5704-1 pillow - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3724-1 pillow - security update Debian Security (DSA / DLA) · Mar 9, 2026
- ICSA-25-203-04 Schneider Electric EcoStruxure Power Operation (Update A) CISA ICS & IT advisories · Feb 25, 2026
- SEVD-2025-189-03 EcoStruxure™ Power Operation Schneider Electric CPCERT · Feb 10, 2026
- openSUSE-SU-2024:13611-1 python310-Pillow-10.2.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0205-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0290-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0125-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0439-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-3377 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- SUSE-SU-2024:0185-1 Security update for python-Pillow SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2024-1248 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2024
- NCSC-2024-0416 Kwetsbaarheden verholpen in Oracle Financial Services Applications NCSC-NL (Netherlands) · Oct 17, 2024
- WID-SEC-2024-3192 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 15, 2024
- NCSC-2024-0297 Kwetsbaarheden verholpen in Oracle Financial Services Applications NCSC-NL (Netherlands) · Jul 17, 2024
- WID-SEC-2024-1638 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 16, 2024
- ELSA-2024-0893 Important: python-pillow security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 20, 2024
- ELSA-2024-0857 Important: python-pillow security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 18, 2024
- ALAS2023-2024-512 Important: python-pillow security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 6, 2024
- ALAS2-2024-2444 Important: python-pillow security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Feb 1, 2024
References
- https://github.com/python-pillow/Pillow/releases
- https://devhub.checkmarx.com/cve-details/CVE-2023-50447/
- [oss-security] 20240120 Pillow 10.2.0 released, fixes CVE-2023-50447 mailing-list
- [debian-lts-announce] 20240129 [SECURITY] [DLA 3724-1] pillow security update mailing-list
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/