VDB
Sign up
—

PYSEC-2021-42

Quick fix

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

pip install --upgrade 'pillow>=8.1.1'

Details

Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICO container, and thus an attempted memory allocation can be very large.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References