# CVE-2023-50447: pillow: Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different v...

CVE-2023-50447 is fixed in 13 products on 1 platform, first by python-pil 5.1.0-1ubuntu0.8+esm2, released January 19, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2023-50447
- Priority: High
- CVSS: 9.0 (high)
- EPSS: 0.0170
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 19, 2024

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | pillow Debian 12.15 (bookworm) | 9.4.0-1.1+deb12u1 | [DEBIAN-CVE-2023-50447](https://patchblox.com/security/data/fix/linux/debian-cve-2023-50447.md) | Jan 19, 2024 |
| Linux | pillow Debian 13.5 (trixie) | 10.2.0-1 | [DEBIAN-CVE-2023-50447](https://patchblox.com/security/data/fix/linux/debian-cve-2023-50447.md) | Jan 19, 2024 |
| Linux | pillow Debian 14 | 10.2.0-1 | [DEBIAN-CVE-2023-50447](https://patchblox.com/security/data/fix/linux/debian-cve-2023-50447.md) | Jan 19, 2024 |
| Linux | python-pil Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.8+esm2 | [python-pil 5.1.0-1ubuntu0.8+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pil-5.1.0-1ubuntu0.8-esm2.md) | Jan 19, 2024 |
| Linux | python-pil.imagetk Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.8+esm2 | [python-pil.imagetk 5.1.0-1ubuntu0.8+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pil.imagetk-5.1.0-1ubuntu0.8-esm2.md) | Jan 19, 2024 |
| Linux | python-pillow-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python-pillow-debugsource amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python3-pil Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.8+esm2 | [python3-pil 5.1.0-1ubuntu0.8+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pil-5.1.0-1ubuntu0.8-esm2.md) | Jan 19, 2024 |
| Linux | python3-pil Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.8 | [python3-pil 7.0.0-4ubuntu0.8](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-pil-7.0.0-4ubuntu0.8.md) | Jan 19, 2024 |
| Linux | python3-pil Ubuntu 22.04.1 LTS (jammy) | 9.0.1-1ubuntu0.2 | [python3-pil 9.0.1-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-pil-9.0.1-1ubuntu0.2.md) | Jan 19, 2024 |
| Linux | python3-pil Ubuntu 24.04.5 LTS (noble) | 10.2.0-1 | [python3-pil 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-pil-10.2.0-1.md) | Jan 19, 2024 |
| Linux | python3-pil Ubuntu 24.10 (oracular) | 10.2.0-1 | [python3-pil 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-python3-pil-10.2.0-1.md) | Jan 16, 2026 |
| Linux | python3-pil Ubuntu 25.04 (plucky) | 10.2.0-1 | [python3-pil 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-pil-10.2.0-1.md) | Jan 16, 2026 |
| Linux | python3-pil.imagetk Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.8+esm2 | [python3-pil.imagetk 5.1.0-1ubuntu0.8+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pil.imagetk-5.1.0-1ubuntu0.8-esm2.md) | Jan 19, 2024 |
| Linux | python3-pil.imagetk Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.8 | [python3-pil.imagetk 7.0.0-4ubuntu0.8](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-pil.imagetk-7.0.0-4ubuntu0.8.md) | Jan 19, 2024 |
| Linux | python3-pil.imagetk Ubuntu 22.04.1 LTS (jammy) | 9.0.1-1ubuntu0.2 | [python3-pil.imagetk 9.0.1-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-pil.imagetk-9.0.1-1ubuntu0.2.md) | Jan 19, 2024 |
| Linux | python3-pil.imagetk Ubuntu 24.04.5 LTS (noble) | 10.2.0-1 | [python3-pil.imagetk 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-pil.imagetk-10.2.0-1.md) | Jan 19, 2024 |
| Linux | python3-pil.imagetk Ubuntu 24.10 (oracular) | 10.2.0-1 | [python3-pil.imagetk 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-python3-pil.imagetk-10.2.0-1.md) | Jan 16, 2026 |
| Linux | python3-pil.imagetk Ubuntu 25.04 (plucky) | 10.2.0-1 | [python3-pil.imagetk 10.2.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-python3-pil.imagetk-10.2.0-1.md) | Jan 16, 2026 |
| Linux | python3-pillow RHEL 8 | 0:5.1.1-18.el8_9.1 | [RHSA-2024:0893](https://patchblox.com/security/data/fix/linux/rhsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow almalinux 8 | 5.1.1-18.el8_9.1.alma.1 | [ALSA-2024:0893](https://patchblox.com/security/data/fix/linux/alsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python3-pillow ol 8 | 0:5.1.1-18.el8_9.1 | [ELSA-2024-0893](https://patchblox.com/security/data/fix/linux/elsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python3-pillow-devel RHEL 8 | 0:5.1.1-18.el8_9.1 | [RHSA-2024:0893](https://patchblox.com/security/data/fix/linux/rhsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-devel almalinux 8 | 5.1.1-18.el8_9.1.alma.1 | [ALSA-2024:0893](https://patchblox.com/security/data/fix/linux/alsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-devel amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python3-pillow-devel ol 8 | 0:5.1.1-18.el8_9.1 | [ELSA-2024-0893](https://patchblox.com/security/data/fix/linux/elsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-doc RHEL 8 | 0:5.1.1-18.el8_9.1 | [RHSA-2024:0893](https://patchblox.com/security/data/fix/linux/rhsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-doc almalinux 8 | 5.1.1-18.el8_9.1.alma.1 | [ALSA-2024:0893](https://patchblox.com/security/data/fix/linux/alsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-doc ol 8 | 0:5.1.1-18.el8_9.1 | [ELSA-2024-0893](https://patchblox.com/security/data/fix/linux/elsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-tk RHEL 8 | 0:5.1.1-18.el8_9.1 | [RHSA-2024:0893](https://patchblox.com/security/data/fix/linux/rhsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-tk almalinux 8 | 5.1.1-18.el8_9.1.alma.1 | [ALSA-2024:0893](https://patchblox.com/security/data/fix/linux/alsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-tk amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |
| Linux | python3-pillow-tk ol 8 | 0:5.1.1-18.el8_9.1 | [ELSA-2024-0893](https://patchblox.com/security/data/fix/linux/elsa-2024-0893.md) | Feb 20, 2024 |
| Linux | python3-pillow-tk-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.4 | [ALAS2023-2024-512](https://patchblox.com/security/data/fix/linux/alas2023-2024-512.md) | Feb 1, 2024 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
