Arbitrary Code Execution in Pillow
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pillow | < 10.2.0 | 10.2.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-50447
- https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
- 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/python-pillow/Pillow
- https://github.com/python-pillow/Pillow/releases
- https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html
- https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security
- http://www.openwall.com/lists/oss-security/2024/01/20/1
- https://pypi.org/project/pillow
- https://github.com/advisories/GHSA-3f63-hfp8-52jq
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-94, CWE-95- Platform
- Python (PyPI)
- Package
pillow- Disclosed
- 19.01.2024
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-457 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-3f63-hfp8-52jq - CC BY 4.0
Vulnerability history: pillow
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 81
- First → latest
- 04.2014 10.2026
- Without a fix
- 0
- Exploited in attacks
- 1
Severity breakdown
- Critical 10
- High 53
- Medium 16
- Low 1
- Unrated 1
Disclosures per year
- 2017: 1
- 2018: 0
- 2019: 1
- 2020: 10
- 2021: 20
- 2022: 8
- 2023: 3
- 2024: 2
- 2025: 1
- 2026: 23
earlier: 12
-
Arbitrary Code Execution in Pillow this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.