Vulnerabilities · 2023 · Python
CVE-2023-50447
Python Pillow vulnerability
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).
Affected products
Pillow, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.openwall.com/lists/oss-security/2024/01/20/1 · Third Party Advisory
- devhub.checkmarx.com/cve-details/CVE-2023-50447/ · Third Party Advisory
- lists.debian.org/debian-lts-announce/2024/01/msg00019.html · Third Party Advisory
- duartecsantos.github.io/2024-01-02-CVE-2023-50447/
- github.com/python-pillow/Pillow/releases
- nvd.nist.gov/vuln/detail/CVE-2023-50447
- github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
- pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security
- nvd.nist.gov/vuln/detail/CVE-2023-50447
- cve.org/CVERecord?id=CVE-2023-50447
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.