maxpmaxp / pdfreader

Python API for PDF documents
MIT License
113 stars 26 forks source link

Upgrade Pillow to version 6.2.2 or later #39

Closed maxpmaxp closed 4 years ago

maxpmaxp commented 4 years ago

Remediation

Upgrade Pillow to version 6.2.2 or later. For example:

Pillow>=6.2.2 Always verify the validity and compatibility of suggestions with your codebase.

Details

CVE-2020-5313

moderate severity Vulnerable versions: < 6.2.2 Patched version: 6.2.2 libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow. CVE-2019-19911

moderate severity Vulnerable versions: < 6.2.2 Patched version: 6.2.2 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.