Skip to content
OpenAdvisories

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 python3-pillow +3 5.1.1-18.el8_9.1.alma.1 ALSA-2024:0893
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-pillow 10.2.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI pillow < 10.2.0 10.2.0 GHSA-3f63-hfp8-52jq

Advisories 32

References