Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-50447

pillow: Arbitrary Code Execution via the environment parameter

Overview

Published
19 Jan 2024
Modified
17 Jun 2026
High CVE
4 Registry packages
30 OS packages
13 Linux distributions
Yes Fix available

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

Packages affected by CVE-2023-50447
EcosystemPackageVulnerableFixed in
Bitnami pillow <10.1.1 10.1.1
PyPI pillow <10.2.0 10.2.0
Seal PyPI pillow >=9.3.0+sp0, <9.3.0+sp999 9.3.0+sp999
Seal PyPI seal-pillow >=9.3.0+sp1, <9.3.0+sp999 9.3.0+sp999

Open a package to see all its vulnerabilities.

Operating systems · 37 fixes

Oracle Linux 2 releases · 2 packages

fixed 2
python-pillow python3-pillow
Oracle Linux fixes for CVE-2023-50447
ReleasePackageFixed 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
Red Hat fixes for CVE-2023-50447
ReleasePackageFixed inAdvisory
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
SUSE Linux Enterprise fixes for CVE-2023-50447
ReleasePackageFixed inAdvisory
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
alma fixes for CVE-2023-50447
ReleasePackageFixed in
8 python3-pillow +3 5.1.1-18.el8_9.1.alma.1

alpine 4 releases · 1 package

fixed 4
py3-pillow
alpine fixes for CVE-2023-50447
ReleasePackageFixed 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
amazon linux fixes for CVE-2023-50447
ReleasePackageFixed 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
chainguard fixes for CVE-2023-50447
ReleasePackageFixed 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
debian fixes for CVE-2023-50447
ReleasePackageFixed 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
echo fixes for CVE-2023-50447
ReleasePackageFixed in
pillow 9.4.0-1.1+deb12u1

openSUSE 1 release · 2 packages

fixed 2
python310-pillow python313-pillow
openSUSE fixes for CVE-2023-50447
ReleasePackageFixed inAdvisory
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
seal Red Hat fixes for CVE-2023-50447
ReleasePackageFixed in
7 python-jinja2 +1 2.7.2-4.el7+sp999

ubuntu 6 releases · 1 package

fixed 6
pillow
ubuntu fixes for CVE-2023-50447
ReleasePackageFixed 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
wolfi fixes for CVE-2023-50447
ReleasePackageFixed in
py3-seaborn 0.13.2-r0
py3-pillow 10.2.0-r0
kubeflow-pipelines-visualization-server 2.4.1-r2

References

Show all 25 references

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.