PYSEC-2026-457
Arbitrary Code Execution in Pillow
At a glance
- Published
- Updated
- CVE
- CVE-2023-50447
- Aliases
- BIT-pillow-2023-50447, GHSA-3f63-hfp8-52jq
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS_V4
- 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
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).
Affected packages
| Package | Versions |
|---|---|
| PyPI · pillow | introduced 0, fixed 10.2.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-50447 ADVISORY
- 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/python-pillow/Pillow PACKAGE
- https://github.com/python-pillow/Pillow/releases WEB
- https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security WEB
- http://www.openwall.com/lists/oss-security/2024/01/20/1 WEB
- https://pypi.org/project/pillow PACKAGE
- https://github.com/advisories/GHSA-3f63-hfp8-52jq ADVISORY
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — PyPA Advisory Database |