VDB
Sign up
—

PYSEC-2021-139

Quick fix

PYSEC-2021-139 — pillow: upgrade to the fixed version with the command below.

pip install --upgrade 'pillow>=8.2.0'

Details

An issue was discovered in Pillow before 8.2.0. PSDImagePlugin.PsdImageFile lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on Image.open prior to Image.load.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References