
CVE catalog
CVE-2023-50447
pillow: CVE-2023-50447
- Severity
- High · CVSS 8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.70% · Oct 25, 2026
A vulnerability was found in Pillow, a popular Python imaging library. The flaw identified in the PIL.ImageMath.eval function enables arbitrary code execution by manipulating the environment parameter. pillow: Arbitrary Code Execution via the environment parameter The vulnerability in Pillow's PIL.ImageMath.eval function poses a significant threat due to its potential for arbitrary code execution. Pillow's widespread use in diverse domains makes this flaw particularly impactful, as it could lead to unauthorized access, data breaches, and compromise of entire systems. The complex exploitation method involving Python's dunder methods adds sophistication to potential attacks. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pillow | sid | 13.0.0-1 | fixed |
| Debian | pillow | forky | 12.3.0-1 | fixed |
| Debian | pillow | trixie | 11.1.0-5+deb13u4 | fixed |
| Debian | pillow | trixie-security | 11.1.0-5+deb13u3 | fixed |
| Debian | pillow | bookworm | 9.4.0-1.1+deb12u1 | fixed |
| Debian | pillow | bookworm-security | 9.4.0-1.1+deb12u1 | fixed |
| PyPI | pillow | Not reported | 10.2.0 | fixed |
| PyPI | pillow | Not reported | 10.2.0 | fixed |
| Ubuntu | pillow | pro | 4.1.1-3build2 | vulnerable |
| Ubuntu | pillow | pro | 4.3.0-2ubuntu1 | vulnerable |
| Ubuntu | pillow | pro | 5.0.0-1 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.2 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.3 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.4 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.5 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.6 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.7 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.8 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.8+esm1 | vulnerable |
| Ubuntu | pillow | pro | 5.1.0-1ubuntu0.8+esm2 | fixed |
| Ubuntu | pillow | 20.04 | 6.1.0-1 | vulnerable |
| Ubuntu | pillow | 20.04 | 6.1.0-1build1 | vulnerable |
| Ubuntu | pillow | 20.04 | 6.2.1-2 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4build1 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.1 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.2 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.3 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.4 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.5 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.6 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.7 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.8 | fixed |
| Ubuntu | pillow-python2 | pro | 6.2.1-3~build1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm2 | vulnerable |
| Ubuntu | pillow | 22.04 | 8.1.2+dfsg-0.3 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.0-1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1build1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.1 | vulnerable |
| Ubuntu | pillow | 22.04 | 9.0.1-1ubuntu0.2 | fixed |
| Ubuntu | pillow | 24.04 | 10.0.0-1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.1.0-1 | vulnerable |
| Ubuntu | pillow | 24.04 | 10.2.0-1 | fixed |
| Opensuse | python-Pillow | tumbleweed | 10.2.0-1.1 | fixed |
| Suse | python-Pillow | linux enterprise module for python 3 15 sp5 | 9.5.0-150400.5.9.1 | fixed |
| Suse | python-Pillow | linux enterprise high performance computing 15 sp4-espos | 9.5.0-150400.5.9.1 | fixed |
| Suse | python-Pillow | linux enterprise high performance computing 15 sp4-ltss | 9.5.0-150400.5.9.1 | fixed |
| Suse | python-Pillow | linux enterprise server 15 sp4-ltss | 9.5.0-150400.5.9.1 | fixed |
| Suse | python-Pillow | linux enterprise server for sap applications 15 sp4 | 9.5.0-150400.5.9.1 | fixed |
| Opensuse | python-Pillow | leap 15.5 | 9.5.0-150400.5.9.1 | fixed |
| Suse | python-Pillow | package hub 15 sp5 | 8.4.0-bp155.3.3.1 | fixed |
| Opensuse | python-Pillow | leap 15.5 | 8.4.0-bp155.3.3.1 | fixed |
| Suse | python-Pillow | openstack cloud 9 | 5.2.0-3.23.1 | fixed |
| Suse | python-Pillow | openstack cloud crowbar 9 | 5.2.0-3.23.1 | fixed |
| Opensuse | python-Pillow | leap 15.5 | 7.2.0-150300.3.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pillow | source | sid | 10.2.0-1 | not yet assigned | Not reported | [1061172] |
| Debian | pillow | source | forky | 10.2.0-1 | not yet assigned | Not reported | [1061172] |
| Debian | pillow | source | trixie | 10.2.0-1 | not yet assigned | Not reported | [1061172] |
| Debian | pillow | source | bookworm | 9.4.0-1.1+deb12u1 | not yet assigned | Not reported | [1061172] |
| PyPI | pillow | PyPI | Not reported | 10.2.0 | Not reported | PYSEC-2026-457 | Not reported |
| PyPI | pillow | PyPI | Not reported | 10.2.0 | Not reported | GHSA-3F63-HFP8-52JQ | Not reported |
| Ubuntu | pillow | deb | pro | 5.1.0-1ubuntu0.8+esm2 | Not reported | UBUNTU-CVE-2023-50447 | Not reported |
| Ubuntu | pillow | deb | 20.04 | 7.0.0-4ubuntu0.8 | Not reported | UBUNTU-CVE-2023-50447 | Not reported |
| Ubuntu | pillow | deb | 22.04 | 9.0.1-1ubuntu0.2 | Not reported | UBUNTU-CVE-2023-50447 | Not reported |
| Ubuntu | pillow | deb | 24.04 | 10.2.0-1 | Not reported | UBUNTU-CVE-2023-50447 | Not reported |
| Opensuse | python-Pillow | rpm | tumbleweed | 10.2.0-1.1 | Not reported | OPENSUSE-SU-2024:13611-1 | Not reported |
| Suse | python-Pillow | rpm | linux enterprise module for python 3 15 sp5 | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Suse | python-Pillow | rpm | linux enterprise high performance computing 15 sp4-espos | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Suse | python-Pillow | rpm | linux enterprise high performance computing 15 sp4-ltss | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Suse | python-Pillow | rpm | linux enterprise server 15 sp4-ltss | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Suse | python-Pillow | rpm | linux enterprise server for sap applications 15 sp4 | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Opensuse | python-Pillow | rpm | leap 15.5 | 9.5.0-150400.5.9.1 | Not reported | SUSE-SU-2024:0205-1 | Not reported |
| Suse | python-Pillow | rpm | package hub 15 sp5 | 8.4.0-bp155.3.3.1 | Not reported | OPENSUSE-SU-2024:0125-1 | Not reported |
| Opensuse | python-Pillow | rpm | leap 15.5 | 8.4.0-bp155.3.3.1 | Not reported | OPENSUSE-SU-2024:0125-1 | Not reported |
| Suse | python-Pillow | rpm | openstack cloud 9 | 5.2.0-3.23.1 | Not reported | SUSE-SU-2024:0439-1 | Not reported |
| Suse | python-Pillow | rpm | openstack cloud crowbar 9 | 5.2.0-3.23.1 | Not reported | SUSE-SU-2024:0439-1 | Not reported |
| Opensuse | python-Pillow | rpm | leap 15.5 | 7.2.0-150300.3.6.1 | Not reported | SUSE-SU-2024:0185-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11261-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-50447]
- [https://osv.dev/vulnerability/DLA-3724-1]
- [https://osv.dev/vulnerability/GHSA-3f63-hfp8-52jq]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0185-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0205-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0439-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-50447]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:0125-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13611-1]
- [https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/2025/icsa-25-203-04.json]
- [https://security-tracker.debian.org/tracker/CVE-2023-50447]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-50447.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0337.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]