Advisory

GHSA-3f63-hfp8-52jq

Also known as: BIT-pillow-2023-50447, CVE-2023-50447, PYSEC-2026-457

Summary

Arbitrary Code Execution in Pillow

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-01-19 21:30 UTC
Modified
2026-11-16 16:00 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 0, fixed 10.2.0 (ecosystem)

Fixed versions

10.2.0

Fix

  • Fixed version 10.2.0
    pip install --upgrade pillow==10.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences