VDB
Sign up
HIGH7.8

PYSEC-2026-2252

Quick fix

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

pip install --upgrade 'pillow>=12.2.0'

Details

Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pillow
Introduced in: 10.3.0Fixed in: 12.2.0
Fixpip install --upgrade 'pillow>=12.2.0'

References