pillow
PyPI60 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting pillowpage 1 of 2
- CVE-2014-1932NONECVSS 0.0✓ Fixed in 2.3.12014-04-17
vulnerable: 1.0 ... 2.3.0 (22 versions)
The (1) load_djpeg function in JpegImagePlugin.py, (2) Ghostscript function in EpsImagePlugin.py, (3) load function in IptcImagePlugin.py, and (4) _copy function in Image.py in Python Image Library (PIL) 1.1.7 and earlier and Pillow before…
- CVE-2014-1933NONECVSS 0.0✓ Fixed in 2.3.12014-04-17
vulnerable: 1.0 ... 2.3.0 (22 versions)
The (1) JpegImagePlugin.py and (2) EpsImagePlugin.py scripts in Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.3.1 uses the names of temporary files on the command line, which makes it easier for local users to conduct sy…
- CVE-2014-3007NONECVSS 0.0✓ Fixed in 2.5.02014-04-27
vulnerable: 1.0 ... 2.4.0 (25 versions)
Python Image Library (PIL) 1.1.7 and earlier and Pillow 2.3 might allow remote attackers to execute arbitrary commands via shell metacharacters in unspecified vectors related to CVE-2014-1932, possibly JpegImagePlugin.py.
- CVE-2014-3589NONECVSS 0.0✓ Fixed in 2.5.22014-08-25
vulnerable: 1.0 ... 2.5.1 (25 versions)
PIL/IcnsImagePlugin.py in Python Imaging Library (PIL) and Pillow before 2.3.2 and 2.5.x before 2.5.2 allows remote attackers to cause a denial of service via a crafted block size.
- CVE-2014-3598NONECVSS 0.0EG 0.0✓ Fixed in 2.5.32015-05-01
vulnerable: 1.0 ... 2.5.2 (28 versions)
The Jpeg2KImagePlugin plugin in Pillow before 2.5.3 allows remote attackers to cause a denial of service via a crafted image.
- CVE-2014-9601NONECVSS 0.0✓ Fixed in 2.7.02015-01-16
vulnerable: 1.0 ... 2.6.2 (32 versions)
Pillow before 2.7.0 allows remote attackers to cause a denial of service via a compressed text chunk in a PNG image that has a large size when it is decompressed.
- CVE-2016-0740MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.1.12016-04-13
vulnerable: 1.0 ... 3.1.0rc1 (41 versions)
Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.
- CVE-2016-0775MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.1.12016-04-13
vulnerable: 1.0 ... 3.1.0rc1 (41 versions)
Buffer overflow in the ImagingFliDecode function in libImaging/FliDecode.c in Pillow before 3.1.1 allows remote attackers to cause a denial of service (crash) via a crafted FLI file.
- CVE-2016-2533MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.1.12016-04-13
vulnerable: 1.0 ... 3.1.0rc1 (41 versions)
Buffer overflow in the ImagingPcdDecode function in PcdDecode.c in Pillow before 3.1.1 and Python Imaging Library (PIL) 1.1.7 and earlier allows remote attackers to cause a denial of service (crash) via a crafted PhotoCD file.
- CVE-2016-3076MEDIUMCVSS 5.5EG 5.5✓ Fixed in 3.1.22017-04-24
vulnerable: 2.5.0 ... 3.1.1 (17 versions)
Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.
- CVE-2016-4009CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.1.12016-04-13
vulnerable: 1.0 ... 3.1.0rc1 (41 versions)
Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact via negative values of the new size, which triggers a heap-based buffer overflow.
- CVE-2016-9189MEDIUMCVSS 5.5EG 5.5✓ Fixed in 3.3.22016-11-04
vulnerable: 1.0 ... 3.3.1 (46 versions)
Pillow before 3.3.2 allows context-dependent attackers to obtain sensitive information by using the "crafted image file" approach, related to an "Integer Overflow" issue affecting the Image.core.map_buffer in map.c component.
- CVE-2016-9190HIGHCVSS 7.8EG 7.8✓ Fixed in 3.3.22016-11-04
vulnerable: 1.0 ... 3.3.1 (46 versions)
Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the "crafted image file" approach, related to an "Insecure Sign Extension" issue affecting the ImagingNew in Storage.c component.
- CVE-2019-16865HIGHCVSS 7.5EG 7.5✓ Fixed in 6.2.02019-10-04
vulnerable: 1.0 ... 6.1.0 (66 versions)
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.
- CVE-2019-19911HIGHCVSS 7.5EG 7.5✓ Fixed in 6.2.22020-01-05
vulnerable: 1.0 ... 6.2.1 (68 versions)
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…
- CVE-2020-10177MEDIUMCVSS 5.5EG 5.5✓ Fixed in 7.1.02020-06-25
vulnerable: 1.0 ... 7.0.0 (70 versions)
Pillow before 7.1.0 has multiple out-of-bounds reads in libImaging/FliDecode.c.
- CVE-2020-10378MEDIUMCVSS 5.5EG 5.5✓ Fixed in 7.1.02020-06-25
vulnerable: 1.0 ... 7.0.0 (70 versions)
In libImaging/PcxDecode.c in Pillow before 7.1.0, an out-of-bounds read can occur when reading PCX files where state->shuffle is instructed to read beyond state->buffer.
- CVE-2020-10379HIGHCVSS 7.8EG 7.8✓ Fixed in 7.1.02020-06-25
vulnerable: 1.0 ... 7.0.0 (70 versions)
In Pillow before 7.1.0, there are two Buffer Overflows in libImaging/TiffDecode.c.
- CVE-2020-10994MEDIUMCVSS 5.5EG 5.5✓ Fixed in 7.0.02020-06-25
vulnerable: 1.0 ... 6.2.2 (69 versions)
In libImaging/Jpeg2KDecode.c in Pillow before 7.1.0, there are multiple out-of-bounds reads via a crafted JP2 file.
- CVE-2020-11538HIGHCVSS 8.1EG 8.1✓ Fixed in 7.1.02020-06-25
vulnerable: 1.0 ... 7.0.0 (70 versions)
In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files, a different issue than CVE-2020-5311.
- CVE-2020-35653HIGHCVSS 7.1EG 7.1✓ Fixed in 8.1.02021-01-12
vulnerable: 1.0 ... 8.0.1 (76 versions)
In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations.
- CVE-2020-35654HIGHCVSS 8.8EG 8.8✓ Fixed in 8.1.02021-01-12
vulnerable: 1.0 ... 8.0.1 (76 versions)
In Pillow before 8.1.0, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode.
- CVE-2020-35655MEDIUMCVSS 5.4EG 5.4✓ Fixed in 8.1.02021-01-12
vulnerable: 4.3.0 ... 8.0.1 (20 versions)
In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.
- CVE-2020-5310HIGHCVSS 8.8EG 8.8✓ Fixed in 6.2.22020-01-03
vulnerable: 1.0 ... 6.2.1 (68 versions)
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
- CVE-2020-5311CRITICALCVSS 9.8EG 9.8✓ Fixed in 6.2.22020-01-03
vulnerable: 1.0 ... 6.2.1 (68 versions)
libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.
- CVE-2020-5312CRITICALCVSS 9.8EG 9.8✓ Fixed in 6.2.22020-01-03
vulnerable: 1.0 ... 6.2.1 (68 versions)
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
- CVE-2020-5313HIGHCVSS 7.1EG 7.1✓ Fixed in 6.2.22020-01-03
vulnerable: 1.0 ... 6.2.1 (68 versions)
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
- CVE-2021-23437HIGHCVSS 7.5EG 7.5✓ Fixed in 8.3.22021-09-03
vulnerable: 1.0 ... 8.3.1 (82 versions)
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
- CVE-2021-25287CRITICALCVSS 9.1EG 9.1✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
- CVE-2021-25288CRITICALCVSS 9.1EG 9.1✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.
- CVE-2021-25289CRITICALCVSS 9.8EG 9.8✓ Fixed in 8.1.12021-03-19
vulnerable: 1.0 ... 8.1.0 (77 versions)
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 inco…
- CVE-2021-25290HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-19
vulnerable: 1.0 ... 8.1.0 (77 versions)
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
- CVE-2021-25291HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-19
vulnerable: 1.0 ... 8.1.0 (77 versions)
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.
- CVE-2021-25292MEDIUMCVSS 6.5EG 6.5✓ Fixed in 8.1.12021-03-19
vulnerable: 1.0 ... 8.1.0 (77 versions)
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.
- CVE-2021-25293HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-19
vulnerable: 1.0 ... 8.1.0 (77 versions)
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
- CVE-2021-27921HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-03
vulnerable: 1.0 ... 8.1.0 (77 versions)
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.
- CVE-2021-27922HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-03
vulnerable: 1.0 ... 8.1.0 (77 versions)
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.
- CVE-2021-27923HIGHCVSS 7.5EG 7.5✓ Fixed in 8.1.12021-03-03
vulnerable: 1.0 ... 8.1.0 (77 versions)
Pillow before 8.1.2 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.
- CVE-2021-28675MEDIUMCVSS 5.5EG 5.5✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
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.
- CVE-2021-28676HIGHCVSS 7.5EG 7.5✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
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.
- CVE-2021-28677HIGHCVSS 7.5EG 7.5✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
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 wh…
- CVE-2021-28678MEDIUMCVSS 5.5EG 5.5✓ Fixed in 8.2.02021-06-02
vulnerable: 1.0 ... 8.1.2 (79 versions)
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 o…
- CVE-2021-34552CRITICALCVSS 9.8EG 9.8✓ Fixed in 8.3.02021-07-13
vulnerable: 1.0 ... 8.2.0 (80 versions)
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.
- CVE-2022-22815MEDIUMCVSS 6.5EG 6.5✓ Fixed in 9.0.02022-01-10
vulnerable: 1.0 ... 8.4.0 (84 versions)
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
- CVE-2022-22816MEDIUMCVSS 6.5EG 6.5✓ Fixed in 9.0.02022-01-10
vulnerable: 1.0 ... 8.4.0 (84 versions)
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.
- CVE-2022-22817CRITICALCVSS 9.8EG 9.8✓ Fixed in 9.0.02022-01-10
vulnerable: 1.0 ... 8.4.0 (84 versions)
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.
- CVE-2022-24303CRITICALCVSS 9.1EG 9.1✓ Fixed in 9.0.12022-03-28
vulnerable: 1.0 ... 9.0.0 (85 versions)
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
- CVE-2022-30595CRITICALCVSS 9.8EG 9.8✓ Fixed in 9.1.12022-05-25
vulnerable: 9.1.0
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
- CVE-2022-45198HIGHCVSS 7.5EG 7.5✓ Fixed in 9.2.02022-11-14
vulnerable: 1.0 ... 9.1.1 (88 versions)
Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
- CVE-2022-45199HIGHCVSS 7.5EG 7.5✓ Fixed in 9.3.02022-11-14
vulnerable: 9.2.0
Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.
Check whether pillow is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for pillow CVEs against the assets you own.
Start Free Scan →