VendorsPythonpillowany version
Vulnerabilities

Python Pillow any version

Ranked by severity, then by exploit likelihood, unless you sort otherwise. Click a CVE ID for its full record.

107CVEs
CVE-2016-4009
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.
Published 2016-04-13 · Modified
10.0EPSS 0.079
CVE-2020-5311
libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.
Published 2020-01-03 · Modified
9.8EPSS 0.040
CVE-2020-5312
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
Published 2020-01-03 · Modified
9.8EPSS 0.037
CVE-2022-22817
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.
Published 2022-01-07 · Modified
9.8EPSS 0.036
CVE-2021-34552
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.
Published 2021-07-13 · Modified
9.8EPSS 0.032
CVE-2021-25289
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.
Published 2021-03-19 · Modified
9.8EPSS 0.023
CVE-2026-112900
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Published 2026-10-19 · Analyzed
9.8EPSS 0.013
CVE-2026-112393
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Published 2026-10-19 · Analyzed
9.8EPSS 0.010
CVE-2026-112403
Pillow: Heap buffer overflow in ImagingJpegDecode
Published 2026-10-19 · Analyzed
9.8EPSS 0.009
CVE-2026-112398
Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Published 2026-10-19 · Analyzed
9.8EPSS 0.007
CVE-2026-96639
Pillow multi-frame loaders can reuse stale native image storage after mode transitions
Published 2026-10-21 · Analyzed
9.8EPSS 0.007
CVE-2021-25287
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Published 2021-06-02 · Modified
9.1EPSS 0.029
CVE-2022-24303
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
Published 2022-03-28 · Modified
9.1EPSS 0.027
CVE-2021-25288
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.
Published 2021-06-02 · Modified
9.1EPSS 0.024
CVE-2026-54058
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
Published 2026-07-14 · Analyzed
9.1EPSS 0.005
CVE-2020-5310
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
Published 2020-01-03 · Modified
8.8EPSS 0.020
CVE-2020-35654
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.
Published 2021-01-12 · Modified
8.8EPSS 0.019
CVE-2026-112896
Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
Published 2026-10-19 · Analyzed
8.8EPSS 0.005
CVE-2026-96778
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
Published 2026-10-21 · Modified
8.8EPSS 0.005
CVE-2026-112404
Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
Published 2026-10-19 · Modified
8.8EPSS 0.004
CVE-2026-40192
Pillow is vulnerable to a FITS GZIP decompression bomb
Published 2026-04-15 · Modified
8.7EPSS 0.007
CVE-2026-112405
Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112894
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112895
Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112402
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112400
Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112406
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112397
Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
Published 2026-10-19 · Analyzed
8.7EPSS 0.006
CVE-2026-112399
Pillow: APNG background disposal allocates full canvas before decompression bomb check
Published 2026-10-19 · Modified
8.7EPSS 0.005
CVE-2026-112892
Pillow: MSP RLE decoder expands a tiny file into unbounded memory
Published 2026-10-19 · Analyzed
8.7EPSS 0.005
CVE-2026-112897
Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
Published 2026-10-19 · Analyzed
8.7EPSS 0.005
CVE-2026-59204
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
Published 2026-07-14 · Modified
8.7EPSS 0.004
CVE-2026-25990
Pillow has an out-of-bounds write when loading PSD images
Published 2026-02-11 · Modified
8.6EPSS 0.004
CVE-2026-42311
Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Published 2026-05-09 · Analyzed
8.6EPSS 0.002
CVE-2026-96640
Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
Published 2026-10-21 · Modified
8.2EPSS 0.006
CVE-2026-112390
Pillow: Infinite loop in MIC n_frames when the embedded TIFF
Published 2026-10-19 · Analyzed
8.2EPSS 0.006
CVE-2026-112392
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Published 2026-10-19 · Analyzed
8.2EPSS 0.006
CVE-2026-112394
Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
Published 2026-10-19 · Analyzed
8.2EPSS 0.006
CVE-2026-112893
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
Published 2026-10-19 · Modified
8.2EPSS 0.005
CVE-2026-112395
Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
Published 2026-10-19 · Modified
8.2EPSS 0.005
1 / 3Next →