Skip to content
Fencer Vulns
high 8.1

CVE-2023-50447 json

Arbitrary Code Execution in Pillow

published 2024-01-19 2 y ago modified 2026-09-10 1 mo ago also BIT-pillow-2023-50447 , EUVD-2024-0230 , GHSA-3f63-hfp8-52jq , PYSEC-2026-457

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

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).

Patch / fix

  • pypi pillow 10.2.0
  • bitnami pillow 10.1.1
  • pillow Debian 12 9.4.0-1.1+deb12u1
  • pillow Debian 14, Debian 13 10.2.0-1

debian advisories DEBIAN-CVE-2023-50447

  • pillow Ubuntu 20.04 LTS 7.0.0-4ubuntu0.8
  • pillow Ubuntu 22.04 LTS 9.0.1-1ubuntu0.2
  • pillow Ubuntu 24.04 LTS 10.2.0-1
  • pillow Ubuntu Pro 14.04 LTS 2.3.0-1ubuntu3.4+esm5
  • pillow Ubuntu Pro 16.04 LTS 3.1.2-0ubuntu1.6+esm3
  • pillow Ubuntu Pro 18.04 LTS 5.1.0-1ubuntu0.8+esm2

ubuntu advisories UBUNTU-CVE-2023-50447

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • receptor ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el8ap
  • receptor ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el9ap
  • python-idna ansible automation platform developer 2.4, ansible automation platform 2.4 3.7-1.el9ap
  • receptorctl ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el8ap
  • receptorctl ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el9ap
  • python-black ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 22.8.0-2.el9ap
  • python3-idna ansible automation platform developer 2.4, ansible automation platform 2.4 3.7-1.el9ap
  • python-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.4-1.el9ap

red hat advisories RHSA-2024:3781RHSA-2024:1058RHSA-2024:1059RHSA-2024:1060RHSA-2024:0893RHSA-2024:0857

  • python-Pillow OpenStack Cloud Crowbar 9, OpenStack Cloud 9 5.2.0-3.23.1
  • python-Pillow OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.2.1-3.26.1
  • python-Pillow SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Python 3 15 SP5 +3 more 9.5.0-150400.5.9.1
  • python-Pillow openSUSE Leap 15.5 7.2.0-150300.3.6.1

suse advisories SUSE-SU-2024:0439-1SUSE-SU-2024:0290-1SUSE-SU-2024:0205-1SUSE-SU-2024:0185-1

  • python-Pillow openSUSE Tumbleweed 12.3.0-1.1
  • python-Pillow openSUSE Tumbleweed 10.2.0-1.1
  • python-Pillow Package Hub 15 SP5, openSUSE Leap 15.5 8.4.0-bp155.3.3.1

opensuse advisories openSUSE-SU-2026:11261-1openSUSE-SU-2024:13611-1openSUSE-SU-2024:0125-1

  • python3-pillow AlmaLinux 8 5.1.1-18.el8_9.1.alma.1
  • python3-pillow-tk AlmaLinux 8 5.1.1-18.el8_9.1.alma.1

almalinux advisories ALSA-2024:0893

  • py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 10.2.0-r0

alpine advisories ALPINE-CVE-2023-50447

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-50447 updated cvss 8.1

pillow: Arbitrary Code Execution via the environment parameter

  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-pillow 10.3.0-1.el8ap, python3x-pillow 10.3.0-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-pillow 10.3.0-1.el9ap, python3-pillow 10.3.0-1.el9ap
    fixed: vendor fix RHSA-2024:3781
  • Red Hat CodeReady Linux Builder (v. 8) python3-pillow 5.1.1-18.el8_9.1, python3-pillow-tk 5.1.1-18.el8_9.1
    fixed: vendor fix RHSA-2024:0893
  • Red Hat CodeReady Linux Builder EUS (v.8.6) python3-pillow 5.1.1-19.el8_6, python3-pillow-tk 5.1.1-19.el8_6
    fixed: vendor fix RHSA-2024:1058
  • Red Hat CodeReady Linux Builder EUS (v.8.8) python3-pillow 5.1.1-19.el8_8, python3-pillow-tk 5.1.1-19.el8_8
    fixed: vendor fix RHSA-2024:0754
  • 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
    fixed: vendor fix RHSA-2024:0893
  • 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
    fixed: vendor fix RHSA-2024:1059
  • 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
    fixed: vendor fix RHSA-2024:1060
  • 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
    fixed: vendor fix RHSA-2024:1058
show 4 more
  • 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
    fixed: vendor fix RHSA-2024:0754
  • 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
    fixed: vendor fix RHSA-2024:1060
  • 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-qt 2.0.0-25.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-25.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-25.gitd1c6db8.el7_9 Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-pillow 2.0.0-25.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-25.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-25.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-25.gitd1c6db8.el7_9 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-qt 2.0.0-25.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-25.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-25.gitd1c6db8.el7_9 Red Hat Enterprise Linux Workstation (v. 7) python-pillow 2.0.0-25.gitd1c6db8.el7_9
    +1 more products
    Red Hat Enterprise Linux Workstation Optional (v. 7) python-pillow 2.0.0-25.gitd1c6db8.el7_9, python-pillow-qt 2.0.0-25.gitd1c6db8.el7_9, python-pillow-tk 2.0.0-25.gitd1c6db8.el7_9, python-pillow-sane 2.0.0-25.gitd1c6db8.el7_9
    fixed: vendor fix RHSA-2024:0857
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 receptor 1.4.8-1.el8ap, python39-idna 3.7-1.el8ap, python3x-idna 3.7-1.el8ap, receptorctl 1.4.8-1.el8ap, ansible-core 2.15.11-1.el8ap, ansible-test 2.15.11-1.el8ap, +37 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 receptor 1.4.8-1.el9ap, python-idna 3.7-1.el9ap, python3-idna 3.7-1.el9ap, receptorctl 1.4.8-1.el9ap, python-black 22.8.0-2.el9ap, python-jinja2 3.1.4-1.el9ap, +37 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-203-04 updated cvss 8.1

Schneider Electric EcoStruxure Power Operation (Update A)

  • Schneider Electric EcoStruxure Power Operation (EPO) 2022 <=CU6 Schneider Electric EcoStruxure Power Operation (EPO) 2024 <=CU1
    affected: mitigation “If users choose not to apply the remediation mentioned above, Schneider Electric recommends the following:” community.se.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.70% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi pillow
<10.2.0
10.2.0
bitnami pillow
<10.1.1
10.1.1

Affected products

  • python pillow

Classification

Weakness
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.