CVE-2023-50447
HIGH 8.1CVSS 3.1Arbitrary 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).
- Published
- 19 Jan 2024
- Last modified
- 16 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94CWE-95
- Also known as
- BIT-pillow-2023-50447GHSA-3f63-hfp8-52jqPYSEC-2026-457
- Sources
- NVDJSONOSV GHSA-3f63-hfp8-52jqJSONOSV PYSEC-2026-457JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
<= 10.1.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | pillow | < 10.2.0 | 10.2.0 |
References
- http://www.openwall.com/lists/oss-security/2024/01/20/1 · Mailing List, Third Party Advisory, WEB
- https://devhub.checkmarx.com/cve-details/CVE-2023-50447/ · Third Party Advisory, WEB
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/ · WEB
- https://github.com/python-pillow/Pillow/releases · Release Notes, WEB
- https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-50447 · ADVISORY
- https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a · WEB
- https://duartecsantos.github.io/2023-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 · WEB, PACKAGE
- https://github.com/advisories/GHSA-3f63-hfp8-52jq · ADVISORY
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 19 Jan 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Jan 2024)