Advisory

PYSEC-2026-457

Also known as: BIT-pillow-2023-50447, CVE-2023-50447, GHSA-3f63-hfp8-52jq

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

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:23 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: PyPA Advisory Database · CC BY 4.0

Sources & licences