—
PYSEC-2020-172
Quick fix
PYSEC-2020-172 — pillow: upgrade to the fixed version with the command below.
pip install --upgrade 'pillow>=6.2.2'Details
There is a DoS vulnerability in Pillow before 6.2.2 caused by FpxImagePlugin.py calling the range function on an unvalidated 32-bit integer if the number of bands is large. On Windows running 32-bit Python, this results in an OverflowError or MemoryError due to the 2 GB limit. However, on Linux running 64-bit Python this results in the process being terminated by the OOM killer.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html[WEB]
- https://usn.ubuntu.com/4272-1/[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/[WEB]
- https://www.debian.org/security/2020/dsa-4631[ADVISORY]
- https://github.com/advisories/GHSA-5gm3-px64-rw72[ADVISORY]