VDB
Sign up
HIGH8.1

PYSEC-2026-457

Arbitrary Code Execution in Pillow

Quick fix

PYSEC-2026-457 — pillow: upgrade to the fixed version with the command below.

pip install --upgrade 'pillow>=10.2.0'

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

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pillow
Introduced in: 0Fixed in: 10.2.0
Fixpip install --upgrade 'pillow>=10.2.0'

References