Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
Search vulnerabilities
python-pillow: heap buffer overflow in crafted TGA file
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
python-pillow: temporary directory with a space character allows removal of unrelated file after im.show() and related actions
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
python-pillow: PIL.ImageMath.eval allows evaluation of arbitrary expressions
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used.
python-pillow: buffer over-read during initialization of ImagePath.Path in path_getbbox() in path.c
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.
python-pillow: improperly initializes ImagePath.Path in path_getbbox() in path.c
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
python-pillow: Buffer overflow in image convert function
Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.
python-pillow: Excessive looping in BLP image reader
An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.
python-pillow: Excessive CPU use in EPS image reader
An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.
python-pillow: Infinite loop in FLI image reader
An issue was discovered in Pillow before 8.2.0. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.
python-pillow: Excessive memory allocation in PSD image reader
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.
python-pillow: Out-of-bounds read in SGI RLE image reader
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
python-pillow: Regular expression DoS in PDF format parser
An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.
python-pillow: out-of-bounds read in TiffReadRGBATile in TiffDecode.c
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
python-pillow: Negative-offset memcpy in TIFF image reader
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
python-pillow: insufficent fix for CVE-2020-35654 due to incorrect error checking in TiffDecode.c
An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.
python-pillow: Out-of-bounds read in J2K image reader
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.
python-pillow: Out-of-bounds read in J2K image reader
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Regular Expression Denial of Service (ReDoS)
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
python-pillow: out-of-bounds read in ImagingFliDecode when loading FLI images
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.