PyPI: pillow
CVE-2023-50447
Safety vulnerability ID: SFTY-20240119-01887
Safety legacy ID: pyup.io-64436
Pillow is affected by an arbitrary code execution vulnerability. If an attacker has control over the keys passed to the environment argument of PIL.ImageMath.eval(), they may be able to execute arbitrary code. https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html
Overview
Arbitrary Code Execution in Pillow
Advisory
Pillow is affected by an arbitrary code execution vulnerability. If an attacker has control over the keys passed to the environment argument of PIL.ImageMath.eval(), they may be able to execute arbitrary code. https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240119-01887/CVE-2023-50447
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-50447
- https://nvd.nist.gov/vuln/detail/CVE-2023-50447
- https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
- https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security
- http://www.openwall.com/lists/oss-security/2024/01/20/1
- https://github.com/python-pillow/Pillow/releases
- https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html
- https://devhub.checkmarx.com/cve-details/CVE-2023-50447
- https://duartecsantos.github.io/2023-01-02-CVE-2023-50447
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447
- https://github.com/advisories/GHSA-3f63-hfp8-52jq
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
