CVE-2023-50447
pillow: Arbitrary Code Execution via the environment parameter
Overview
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).
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94, CWE-95
Affected packages · 4
Operating systems · 37 fixes
Oracle Linux 2 releases · 2 packages
fixed 2
python-pillow
python3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-pillow +5 | 2.0.0-25.gitd1c6db8.el7_9 |
| 8 | python3-pillow +3 | 5.1.1-18.el8_9.1 |
Red Hat 2 releases · 2 packages
fixed 6
python-pillow
python3-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-pillow +5 | 0:2.0.0-25.gitd1c6db8.el7_9 | RHSA-2024:0857 |
| 8 | python3-pillow | 0:5.1.1-15.el8_2 | RHSA-2024:1059 |
| 8 | python3-pillow | 0:5.1.1-15.el8_4 | RHSA-2024:1060 |
| 8 | python3-pillow +3 | 0:5.1.1-18.el8_9.1 | RHSA-2024:0893 |
| 8 | python3-pillow +3 | 0:5.1.1-19.el8_6 | RHSA-2024:1058 |
| 8 | python3-pillow +3 | 0:5.1.1-19.el8_8 | RHSA-2024:0754 |
SUSE Linux Enterprise 2 releases · 1 package
fixed 2
python311-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pillow +1 | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
| 15.5 | python311-pillow +1 | 9.5.0-150400.5.9.1 | SUSE-SU-2024:0205-1 |
alma 1 release · 1 package
fixed 1
python3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-18.el8_9.1.alma.1 |
alpine 4 releases · 1 package
fixed 4
py3-pillow
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-pillow | 10.2.0-r0 |
| 3.23 | py3-pillow | 10.2.0-r0 |
| 3.24 | py3-pillow | 10.2.0-r0 |
| edge | py3-pillow | 10.2.0-r0 |
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.4 |
chainguard 1 release · 3 packages
fixed 3
py3-seaborn
py3-pillow
kubeflow-pipelines-visualization-server
| Release | Package | Fixed in |
|---|---|---|
| py3-seaborn | 0.13.2-r0 | |
| py3-pillow | 10.2.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.4.1-r2 |
debian 5 releases · 1 package
fixed 5
pillow
| Release | Package | Fixed in |
|---|---|---|
| 10 | pillow | 5.4.1-2+deb10u4 |
| 11 | pillow | 8.1.2+dfsg-0.3+deb11u2 |
| 12 | pillow | 9.4.0-1.1+deb12u1 |
| 13 | pillow | 10.2.0-1 |
| 14 | pillow | 10.2.0-1 |
echo 1 release · 1 package
fixed 1
pillow
| Release | Package | Fixed in |
|---|---|---|
| pillow | 9.4.0-1.1+deb12u1 |
openSUSE 1 release · 2 packages
fixed 2
python310-pillow
python313-pillow
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python310-pillow +5 | 10.2.0-1.1 | openSUSE-SU-2024:13611-1 |
| Tumbleweed | python313-pillow +3 | 12.3.0-1.1 | openSUSE-SU-2026:11261-1 |
seal Red Hat 1 release · 1 package
fixed 1
python-jinja2
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 6 releases · 1 package
fixed 6
pillow
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | pillow | 5.1.0-1ubuntu0.8+esm2 |
| 20.04 | pillow | 7.0.0-4ubuntu0.8 |
| 20.04-ESM | pillow | 7.0.0-4ubuntu0.8 |
| 22.04 | pillow | 9.0.1-1ubuntu0.2 |
| 24.04 | pillow | 10.2.0-1 |
| 26.04 | pillow | 10.2.0-1 |
wolfi 1 release · 3 packages
fixed 3
py3-seaborn
py3-pillow
kubeflow-pipelines-visualization-server
| Release | Package | Fixed in |
|---|---|---|
| py3-seaborn | 0.13.2-r0 | |
| py3-pillow | 10.2.0-r0 | |
| kubeflow-pipelines-visualization-server | 2.4.1-r2 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/01/20/1
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:0893
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-50447
- bugzilla.redhat.com https://bugzilla.redhat.com/2259479
- devhub.checkmarx.com https://devhub.checkmarx.com/cve-details/CVE-2023-50447
- devhub.checkmarx.com https://devhub.checkmarx.com/cve-details/CVE-2023-50447/
- duartecsantos.github.io https://duartecsantos.github.io/2023-01-02-CVE-2023-50447
- duartecsantos.github.io https://duartecsantos.github.io/2023-01-02-CVE-2023-50447/
- duartecsantos.github.io https://duartecsantos.github.io/2024-01-02-CVE-2023-50447
- duartecsantos.github.io https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/
Show all 25 references
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2024-0893.html
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-457.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
- github.com https://github.com/python-pillow/Pillow/releases
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-50447.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-0893.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-50447
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#imagemath-eval-restricted-environment-keys
- pillow.readthedocs.io https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security
- pypi.org https://pypi.org/project/pillow
- ubuntu.com https://ubuntu.com/security/notices/USN-6618-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8135-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-50447
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.