# CVE-2023-50447: Arbitrary Code Execution in Pillow

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.70%, higher than 77% of CVEs (2026-12-01)
- Published: 2024-01-19T00:00:00.000Z
- Modified: 2026-11-16T16:00:03.921Z
- Also known as: GHSA-3f63-hfp8-52jq, BIT-PILLOW-2023-50447, PYSEC-2026-457
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- python pillow: up to 10.1.0
- pillow (PyPI): before 10.2.0
- debian debian_linux: 10.0
- pillow (Bitnami): before 10.1.1

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/releases> (article, release-notes, web)
- <https://devhub.checkmarx.com/cve-details/CVE-2023-50447/> (advisory, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/01/20/1> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html> (advisory, mailing-list, third-party-advisory, web)
- <https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50447> (advisory, web)
- <https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a> (web)
- <https://devhub.checkmarx.com/cve-details/CVE-2023-50447> (web)
- <https://duartecsantos.github.io/2023-01-02-CVE-2023-50447> (web)
- <https://duartecsantos.github.io/2024-01-02-CVE-2023-50447> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-457.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security> (web)
- <https://pypi.org/project/pillow> (package, web)
- <https://github.com/advisories/GHSA-3f63-hfp8-52jq> (advisory)
- <https://duartecsantos.github.io/2023-01-02-CVE-2023-50447/> (web)

## Sources

- CVE List: [CVE-2023-50447](https://www.cve.org/CVERecord?id=CVE-2023-50447), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-3f63-hfp8-52jq](https://github.com/advisories/GHSA-3f63-hfp8-52jq), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2023-50447](https://nvd.nist.gov/vuln/detail/CVE-2023-50447), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-457](https://osv.dev/vulnerability/PYSEC-2026-457), CC-BY-4.0, modified 2026-07-01
- Bitnami Vulnerability Database: [BIT-PILLOW-2023-50447](https://osv.dev/vulnerability/BIT-PILLOW-2023-50447), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-50447 · Whole record: https://cve.day/CVE-2023-50447.json · Rebuilt by cve.day 2026-11-25T22:58:32.204Z
