pillow

Every known advisory for the PyPI package pillow, with the affected versions and how widely it is downloaded.

Advisories214
Malicious0
In CISA KEV2
Exposure161,710,886 downloads last week

Newest fixed version among these advisories: f7363c1091c70356d92e56abfca6b65bef9e7b26. Check your version against each range below.

AdvisoryAffected versionsPublished
CVE-2026-128066 GHSA-wqgw-9xfh-qf2g
Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
every version to 13.0.02026-11-12
CVE-2026-128067 GHSA-xcvg-w56q-r89m
Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
every version to 13.0.02026-11-12
CVE-2026-112902 PYSEC-2026-4363
Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled i
every version to 13.0.02026-11-05
CVE-2026-112398 GHSA-5x8w-8jj5-q52h
Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
every version to 13.0.02026-10-23
CVE-2026-114501 GHSA-654x-cwwv-5j9c
Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
11.2.1 to 13.0.02026-10-23
CVE-2026-96638 GHSA-24rc-8hj2-v98c
Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
9.1.0 to 13.0.02026-10-22
CVE-2026-96642 GHSA-3j72-p6qg-6xp7
Pillow: TarIO negative size field causes infinite CPU-spin loop
every version to 13.0.02026-10-22
CVE-2026-96641 GHSA-4rm8-3hmm-39fg
Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
every version to 13.0.02026-10-22
GHSA-78g4-xqwv-q3g8
Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
11.1.0 to 13.0.02026-10-22
CVE-2026-96644 GHSA-9v9v-9qvf-h2hj
Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
every version to 13.0.02026-10-22
CVE-2026-96643 GHSA-g4qv-2jxx-769h
Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
11.0.0 to 13.0.02026-10-22
CVE-2026-96778 GHSA-g7cr-3p24-7wf7
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
9.4.0 to 13.0.02026-10-22
CVE-2026-96637 GHSA-g842-9rc4-69pw
Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
every version to 13.0.02026-10-22
CVE-2026-96640 GHSA-mrfp-p49p-3hf2
Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
5.1.0 to 13.0.02026-10-22
CVE-2026-96636 GHSA-p8hx-v2p6-rp84
Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
every version to 13.0.02026-10-22
CVE-2026-96639 GHSA-v9pv-5gc8-w2m6
Pillow multi-frame loaders can reuse stale native image storage after mode transitions
11.0.0 to 13.0.02026-10-22
CVE-2026-112390 GHSA-22hg-r758-rrw9
Pillow: Infinite loop in MIC n_frames when the embedded TIFF
7.2.0 to 13.0.02026-10-21
CVE-2026-112391 GHSA-254f-3936-288h
Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
5.1.0 to 13.0.02026-10-21
CVE-2026-112392 GHSA-27h8-gf7j-v5hc
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
every version to 13.0.02026-10-21
CVE-2026-112393 GHSA-332p-7hrc-92wf
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
2.0.0 to 13.0.02026-10-21
CVE-2026-112394 GHSA-4558-3h8r-v8xp
Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
every version to 13.0.02026-10-21
CVE-2026-112396 GHSA-4rr5-89j8-mwwm
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
11.3.0 to 13.0.02026-10-21
CVE-2026-112399 GHSA-5xm2-6676-qcp9
Pillow: APNG background disposal allocates full canvas before decompression bomb check
8.1.0 to 13.0.02026-10-21
CVE-2026-112401 GHSA-74r2-7ff9-mjj2
Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
5.4.0 to 13.0.02026-10-21
CVE-2026-112402 GHSA-7mwm-ghpf-9vrm
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
every version to 13.0.02026-10-21
CVE-2026-112405 GHSA-cp9v-662q-vvx9
Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
12.0.0 to 13.0.02026-10-21
CVE-2026-112406 GHSA-f2g6-542v-9j58
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
5.1.0 to 13.0.02026-10-21
CVE-2026-112891 GHSA-fc9g-5qg7-mf45
Pillow: Quadratic GIF comment copying during save
9.2.0 to 13.0.02026-10-21
CVE-2026-112892 GHSA-gg2r-wvfm-q9rx
Pillow: MSP RLE decoder expands a tiny file into unbounded memory
4.1.0 to 13.0.02026-10-21
CVE-2026-112893 GHSA-j4m9-6w36-pw47
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
10.0.0 to 13.0.02026-10-21
CVE-2026-112894 GHSA-jg86-v3jv-hrpm
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
5.1.0 to 13.0.02026-10-21
CVE-2026-112898 GHSA-rfgq-q3w2-pmv2
Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
9.1.0 to 13.0.02026-10-21
CVE-2026-112900 GHSA-w889-685w-c8fh
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
2.6.0 to 13.0.02026-10-21
CVE-2026-112901 GHSA-xgh8-jp6q-p5x8
Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
every version to 13.0.02026-10-21
CVE-2026-112902 GHSA-xvh5-g6gv-559v
Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
5.4.0 to 13.0.02026-10-21
CVE-2026-114501 PYSEC-2026-4336
Pillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an al
11.2.1 to 13.0.02026-10-21
CVE-2026-96636 PYSEC-2026-4337
Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use
every version to 13.0.02026-10-21
CVE-2026-96637 PYSEC-2026-4338
Pillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use
every version to 13.0.02026-10-21
CVE-2026-96639 PYSEC-2026-4339
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to
11.0.0 to 13.0.02026-10-21
CVE-2026-96641 PYSEC-2026-4340
Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of
every version to 13.0.02026-10-21
CVE-2026-96642 PYSEC-2026-4341
Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does n
every version to 13.0.02026-10-21
CVE-2026-96643 PYSEC-2026-4342
Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf ch
11.0.0 to 13.0.02026-10-21
CVE-2026-96644 PYSEC-2026-4343
Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated
every version to 13.0.02026-10-21
CVE-2026-112395 GHSA-462x-pgg6-55fp
Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
8.2.0 to 13.0.02026-10-20
CVE-2026-112397 GHSA-58r4-6rv3-gfh8
Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
every version to 13.0.02026-10-20
CVE-2026-112400 GHSA-65qm-jvmh-6pqg
Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
9.2.0 to 13.0.02026-10-20
CVE-2026-112403 GHSA-8g5g-8vmr-9782
Pillow: Heap buffer overflow in ImagingJpegDecode
every version to 13.0.02026-10-20
CVE-2026-112404 GHSA-c6hw-5grf-ff96
Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
8.1.0 to 13.0.02026-10-20
CVE-2026-112895 GHSA-p4wg-p73j-c528
Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
5.1.0 to 13.0.02026-10-20
CVE-2026-112896 GHSA-pchr-8j38-3x4p
Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
every version to 13.0.02026-10-20
CVE-2026-112897 GHSA-q45j-58j2-45rg
Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
5.3.0 to 13.0.02026-10-20
CVE-2026-112899 GHSA-vx6w-vv9f-6gvg
Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
2.3.0 to 13.0.02026-10-20
CVE-2026-112392 PYSEC-2026-4326
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading th
every version to 13.0.02026-10-19
CVE-2026-112394 PYSEC-2026-4327
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A
every version to 13.0.02026-10-19
CVE-2026-112396 PYSEC-2026-4328
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, l
11.3.0 to 13.0.02026-10-19
CVE-2026-112397 PYSEC-2026-4329
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine
every version to 13.0.02026-10-19
CVE-2026-112398 PYSEC-2026-4330
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrec
every version to 13.0.02026-10-19
CVE-2026-112402 PYSEC-2026-4331
Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transfor
every version to 13.0.02026-10-19
CVE-2026-112403 PYSEC-2026-4332
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count
every version to 13.0.02026-10-19
CVE-2026-112405 PYSEC-2026-4333
Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's Image.merge() can dereference a null image8 plane. Validation skips the first input band, allowing a 32-bit integer or floating-point image backed by image32 storage to
12.0.0 to 13.0.02026-10-19
CVE-2026-112896 PYSEC-2026-4334
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a
every version to 13.0.02026-10-19
CVE-2026-112901 PYSEC-2026-4335
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin
every version to 13.0.02026-10-19
CVE-2026-54058 PYSEC-2026-3493
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
every version to 12.3.02026-07-23
CVE-2026-59198 PYSEC-2026-3494
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
5.2.0 to 12.3.02026-07-23
CVE-2026-59200 PYSEC-2026-3495
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
5.1.0 to 12.3.02026-07-23
CVE-2026-59204 PYSEC-2026-3496
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
8.2.0 to 12.3.02026-07-23
CVE-2026-55379 GHSA-45hq-cxwh-f6vc
Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
every version to 12.3.02026-07-20
CVE-2026-55798 GHSA-4x4j-2g7c-83w6
Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
every version to 12.3.02026-07-20
CVE-2026-54060 GHSA-5x94-69rx-g8h2
Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
every version to 12.3.02026-07-20
CVE-2026-54058 GHSA-62p4-gmf7-7g93
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
every version to 12.3.02026-07-20
CVE-2026-59199 GHSA-6r8x-57c9-28j4
Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
every version to 12.3.02026-07-20
CVE-2026-54059 GHSA-8v84-f9pq-wr9x
Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
every version to 12.3.02026-07-20
CVE-2026-59205 GHSA-9hw9-ch79-4vh6
Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
every version to 12.3.02026-07-20
CVE-2026-59198 GHSA-fj7v-r99m-22gq
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
5.2.0 to 12.3.02026-07-20
CVE-2026-59200 GHSA-jjj6-mw9f-p565
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
5.1.0 to 12.3.02026-07-20
CVE-2026-59203 GHSA-pg7v-jwj7-p798
Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
12.0.0 to 12.3.02026-07-20
CVE-2026-55380 GHSA-phj9-mv4w-65pm
Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
every version to 12.3.02026-07-20
CVE-2026-59204 GHSA-vjc4-5qp5-m44j
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
8.2.0 to 12.3.02026-07-20
CVE-2026-59197 GHSA-xj96-63gp-2gmr
Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
every version to 12.3.02026-07-20
CVE-2026-59199 PYSEC-2026-3451
Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates near the signed 32-bit integer limits in Image.paste(), Image.crop(), or Image.alp
every version to 12.3.02026-07-14
CVE-2026-59203 PYSEC-2026-3452
Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards t
12.0.0 to 12.3.02026-07-14
CVE-2026-59205 PYSEC-2026-3453
Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's d
every version to 12.3.02026-07-14
CVE-2026-59197 PYSEC-2026-3454
Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2,
every version to 12.3.02026-07-14
CVE-2026-42310 PYSEC-2026-2874
Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
4.2.0 to 12.2.02026-07-13
CVE-2024-28219 PYSEC-2026-1793
Pillow buffer overflow vulnerability
every version to 10.3.02026-07-07
CVE-2023-4863 PYSEC-2026-1794 KEV
libwebp: OOB write in BuildHuffmanTable
every version to 10.0.12026-07-07
CVE-2026-54059 PYSEC-2026-2253
Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allo
every version to 12.3.02026-07-06
CVE-2026-54060 PYSEC-2026-2254
Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font
every version to 12.3.02026-07-06
CVE-2026-55379 PYSEC-2026-2255
Pillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker-controlled dimensions to Image.new() without calling Image._decompression_bomb_c
every version to 12.3.02026-07-06
CVE-2026-55380 PYSEC-2026-2256
Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd
every version to 12.3.02026-07-06
CVE-2026-55798 PYSEC-2026-2257
Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=Tr
every version to 12.3.02026-07-06
CVE-2023-50447 PYSEC-2026-457
Arbitrary Code Execution in Pillow
every version to 10.2.02026-06-29
CVE-2026-42308 PYSEC-2026-165
Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in
every version to 12.2.02026-05-09
CVE-2026-42309 PYSEC-2026-2251
Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cau
11.2.1 to 12.2.02026-05-09
CVE-2026-42311 PYSEC-2026-2252
Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in
10.3.0 to 12.2.02026-05-09
CVE-2026-42309 GHSA-5xmw-vc9v-4wf2
Pillow has a heap buffer overflow with nested list coordinates
11.2.1 to 12.2.02026-05-04
CVE-2026-42311 GHSA-pwv6-vv43-88gr
Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
10.3.0 to 12.2.02026-05-04
CVE-2026-42310 GHSA-r73j-pqj5-w3x7
Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
4.2.0 to 12.2.02026-05-04
CVE-2026-42308 GHSA-wjx4-4jcj-g98j
Pillow has an integer overflow when processing fonts
every version to 12.2.02026-05-04
CVE-2026-40192 PYSEC-2026-2250
Pillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could c
10.3.0 to 12.2.02026-04-15
CVE-2026-40192 GHSA-whj4-6x5x-4v2j
FITS GZIP decompression bomb in Pillow
10.3.0 to 12.2.02026-04-13
CVE-2026-25990 GHSA-cfh3-3jmp-rvhc
Pillow affected by out-of-bounds write when loading PSD images
10.3.0 to 12.1.12026-02-11
CVE-2026-25990 PYSEC-2026-2249
Pillow is a Python imaging library. From 10.3.0 to before 12.1.1, an out-of-bounds write may be triggered when loading a specially crafted PSD image. This vulnerability is fixed in 12.1.1.
10.3.0 to 12.1.12026-02-11
CVE-2025-48379 GHSA-xg8h-j46f-w952
Pillow vulnerability can cause write buffer overflow on BCn encoding
11.2.0 to 11.3.02025-07-01
CVE-2025-48379 PYSEC-2025-61
Pillow is a Python imaging library. In versions 11.2.0 to before 11.3.0, there is a heap buffer overflow when writing a sufficiently large (>64k encoded with default settings) image in the DDS format due to writing into a buffer without che
every version to 89f1f4626a2aaf5f3d5ca6437f41def2998fbe09
11.2.0 to 11.3.0
2025-07-01
CVE-2024-28219 GHSA-44wm-f244-xhp3
Pillow buffer overflow vulnerability
every version to 10.3.02024-04-03
CVE-2023-50447 GHSA-3f63-hfp8-52jq
Arbitrary Code Execution in Pillow
every version to 10.2.02024-01-19
CVE-2023-44271 GHSA-8ghj-p4vj-mr35
Pillow Denial of Service vulnerability
every version to 10.0.02023-11-03
CVE-2023-44271 PYSEC-2023-227
An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in Imag
every version to 1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
every version to 10.0.0
2023-11-03
PYSEC-2023-175
Pillow versions before v10.0.1 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-5129 (previously CVE-2023-4863). Pillow v10.0.1 upgrades the bundled libwebp binary to v1.3.2.
every version to 10.0.12023-09-20
CVE-2023-4863 GHSA-j7hp-h8jx-5ppr KEV
libwebp: OOB write in BuildHuffmanTable
every version to 10.0.12023-09-12
CVE-2022-45198 GHSA-m2vv-5vj5-2hm7
Pillow vulnerable to Data Amplification attack.
every version to 9.2.02022-11-14
CVE-2022-45199 GHSA-q4mp-jvh2-76fj
Pillow subject to DoS via SAMPLESPERPIXEL tag
9.2.0 to 9.3.02022-11-14
CVE-2022-45198 PYSEC-2022-42979
Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
every version to 11918eac0628ec8ac0812670d9838361ead2d6a4
every version to 9.2.0
2022-11-14
CVE-2022-45199 PYSEC-2022-42980
Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.
every version to 2444cddab2f83f28687c7c20871574acbb6dbcf3
9.2.0 to 9.3.0
2022-11-14
OSV-2022-1074
Invalid-free in _dealloc
bb2016794f1f9bf9e4726727080e1beb789823fb to f7363c1091c70356d92e56abfca6b65bef9e7b262022-10-22
OSV-2022-715
Segv on unknown address in jpeg_read_scanlines
c58d2817bc891c26e6b8098b8909c0eb2e7ce61b to 9887544fafcd13cc8afcfa0c6d0f2e6facc1a8b82022-08-15
CVE-2022-30595 GHSA-hr8g-f6r6-mr22
Buffer over-flow in Pillow
9.1.0 to 9.1.12022-05-26
CVE-2022-30595 PYSEC-2022-43145
libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
9.1.0 to 9.1.12022-05-25
CVE-2020-5311 GHSA-r7rm-8j6h-r933
Buffer Copy without Checking Size of Input in Pillow
every version to 6.2.22022-05-24
CVE-2014-3007 GHSA-8m9x-pxwq-j236
Pillow command injection
every version to 2.5.02022-05-17
CVE-2016-3076 GHSA-v9pc-9mvp-x87g
Pillow Buffer overflow in Jpeg2KEncode.c
2.5.0 to 3.1.22022-05-17
CVE-2014-1932 GHSA-x895-2wrm-hvp7
PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles
every version to 2.3.12022-05-17
CVE-2014-3589 GHSA-cfmr-38g9-f2h7
Pillow denial of service via Crafted Block Size
every version to 2.3.2
2.5 to 2.5.2
2022-05-14
CVE-2014-9601 GHSA-h5rf-vgqx-wjv2
Pillow denial of service via PNG bomb
every version to 2.7.02022-05-14
CVE-2014-3598 GHSA-j6f7-g425-4gmx
Pillow is vulnerable to Denial of Service (DOS) in the Jpeg2KImagePlugin
every version to 2.5.32022-05-14
CVE-2022-24303 PYSEC-2022-168
Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
every version to 9.0.12022-03-28
GHSA-4fx9-vc88-q2xc
Infinite loop in Pillow
every version to 9.0.02022-03-11
CVE-2022-24303 GHSA-9j59-75qj-795w
Path traversal in Pillow
every version to 9.0.12022-03-11
CVE-2022-22817 GHSA-8vj2-vxx3-667w
Arbitrary expression injection in Pillow
every version to 9.0.12022-01-12
CVE-2022-22815 GHSA-pw3c-h7wp-cvhx
Improper Initialization in Pillow
every version to 9.0.02022-01-12
CVE-2022-22816 GHSA-xrcv-f9gm-v42c
Out-of-bounds Read in Pillow
every version to 9.0.02022-01-12
CVE-2022-22817 PYSEC-2022-10
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.
every version to 9.0.02022-01-10
CVE-2022-22815 PYSEC-2022-8
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
every version to 9.0.02022-01-10
CVE-2022-22816 PYSEC-2022-9
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.
every version to 9.0.02022-01-10
CVE-2020-10378 GHSA-3xv8-3j54-hgrp
Out-of-bounds read in Pillow
every version to 7.1.02021-11-03
CVE-2020-5312 GHSA-p49h-hjvm-jg3h
PCX P mode buffer overflow in Pillow
every version to 6.2.22021-11-03
CVE-2020-5310 GHSA-vcqg-3p29-xw73
Integer overflow in Pillow
every version to 6.2.22021-11-03
CVE-2021-34552 GHSA-7534-mm45-c74v
Buffer Overflow in Pillow
every version to 8.3.02021-10-05
CVE-2021-23437 GHSA-98vv-pw6r-q6q4
Uncontrolled Resource Consumption in pillow
5.2.0 to 8.3.22021-09-07
CVE-2021-23437 PYSEC-2021-317
The package pillow from 0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
every version to 9e08eb8f78fdfd2f476e1b20b7cf38683754866b
every version to 8.3.2
2021-09-03
CVE-2021-34552 PYSEC-2021-331
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.
every version to 8.3.02021-07-13
CVE-2021-25287 GHSA-77gc-v2xv-rvvh
Out-of-bounds Read in Pillow
2.4.0 to 8.2.02021-06-08
CVE-2021-28676 GHSA-7r7m-5h27-29hp
Potential infinite loop in Pillow
every version to 8.2.02021-06-08
CVE-2021-28675 GHSA-g6rj-rv7j-xwp4
Pillow denial of service
every version to 8.2.02021-06-08
CVE-2021-28678 GHSA-hjfx-8p6c-g7gx
Insufficient Verification of Data Authenticity in Pillow
5.1.0 to 8.2.02021-06-08
CVE-2021-28677 GHSA-q5hq-fp76-qmrc
Uncontrolled Resource Consumption in Pillow
every version to 8.2.02021-06-08
CVE-2021-25288 GHSA-rwv7-3v45-hg29
Pillow Out-of-bounds Read vulnerability
2.4.0 to 8.2.02021-06-08
CVE-2021-25287 PYSEC-2021-137
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
every version to 8.2.02021-06-02
CVE-2021-25288 PYSEC-2021-138
An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.
every version to 8.2.02021-06-02
CVE-2021-28675 PYSEC-2021-139
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.
every version to 8.2.02021-06-02
CVE-2021-28676 PYSEC-2021-92
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.
every version to 8.2.02021-06-02
CVE-2021-28677 PYSEC-2021-93
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 whi
every version to 8.2.02021-06-02
CVE-2021-28678 PYSEC-2021-94
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
every version to 8.2.02021-06-02
CVE-2021-25289 GHSA-57h3-9rgr-c24m
Out of bounds write in Pillow
every version to 8.1.12021-03-29
CVE-2021-25290 GHSA-8xjq-8fcg-g5hw
Out-of-bounds Write in Pillow
every version to 8.1.12021-03-29
CVE-2021-25292 GHSA-9hx2-hgq2-2g4f
Regular Expression Denial of Service (ReDoS) in Pillow
5.1.0 to 8.1.12021-03-29
CVE-2021-25291 GHSA-mvg9-xffr-p774
Out of bounds read in Pillow
every version to 8.2.02021-03-29
CVE-2021-25293 GHSA-p43w-g3c5-g5mq
Out of bounds read in Pillow
4.3.0 to 8.1.12021-03-29
CVE-2021-25289 PYSEC-2021-35
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 incom
every version to 8.1.12021-03-19
CVE-2021-25290 PYSEC-2021-36
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
every version to 8.1.12021-03-19
CVE-2021-25291 PYSEC-2021-37
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.
every version to 8.1.12021-03-19
CVE-2021-25292 PYSEC-2021-38
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.
every version to 8.1.12021-03-19
CVE-2021-25293 PYSEC-2021-39
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
every version to 8.1.12021-03-19
CVE-2021-27922 GHSA-3wvg-mj6g-m9cv
Pillow Uncontrolled Resource Consumption
every version to 8.1.22021-03-18
CVE-2021-27923 GHSA-95q3-8gr9-gm8w
Pillow Denial of Service by Uncontrolled Resource Consumption
every version to 8.1.22021-03-18
CVE-2021-27921 GHSA-f4w8-cv6p-x6r5
Pillow Denial of Service by Uncontrolled Resource Consumption
every version to 8.1.22021-03-18
CVE-2020-35653 GHSA-f5g8-5qq7-938w
Pillow Out-of-bounds Read
every version to 8.1.02021-03-18
CVE-2020-35655 GHSA-hf64-x4gq-p99h
Pillow Out-of-bounds Read
4.3.0 to 8.1.02021-03-18
CVE-2020-35654 GHSA-vqcj-wrf2-7v73
Pillow Out-of-bounds Write
every version to 8.1.02021-03-18
CVE-2021-27921 PYSEC-2021-40
Pillow before 8.1.1 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.
every version to 8.1.12021-03-03
CVE-2021-27922 PYSEC-2021-41
Pillow before 8.1.1 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.
every version to 8.1.12021-03-03
CVE-2021-27923 PYSEC-2021-42
Pillow before 8.1.1 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.
every version to 8.1.12021-03-03
CVE-2020-35653 PYSEC-2021-69
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.
every version to 8.1.02021-01-12
CVE-2020-35654 PYSEC-2021-70
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.
every version to 8.1.02021-01-12
CVE-2020-35655 PYSEC-2021-71
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.
4.3.0 to 8.1.02021-01-12
CVE-2020-11538 GHSA-43fq-w8qq-v88h
Out-of-bounds read in Pillow
every version to 7.1.02020-07-27
CVE-2020-10379 GHSA-8843-m7mw-mxqm
Buffer overflow in Pillow
every version to 7.1.02020-07-27
CVE-2020-10177 GHSA-cqhg-xjhh-p8hf
Out-of-bounds reads in Pillow
every version to 7.1.02020-07-27
CVE-2020-10994 GHSA-vj42-xq3r-hr3r
Out-of-bounds reads in Pillow
every version to 7.1.02020-07-27
CVE-2020-10177 PYSEC-2020-76
Pillow before 7.1.0 has multiple out-of-bounds reads in libImaging/FliDecode.c.
every version to 7.1.02020-06-25
CVE-2020-10378 PYSEC-2020-77
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.
every version to 6a83e4324738bb0452fbe8074a995b1c73f08de7
every version to 7.1.0
2020-06-25
CVE-2020-10379 PYSEC-2020-78
In Pillow before 7.1.0, there are two Buffer Overflows in libImaging/TiffDecode.c.
every version to 46f4a349b88915787fea3fb91348bb1665831bbb
every version to 7.1.0
2020-06-25
CVE-2020-10994 PYSEC-2020-79
In libImaging/Jpeg2KDecode.c in Pillow before 7.1.0, there are multiple out-of-bounds reads via a crafted JP2 file.
every version to 7.0.02020-06-25
CVE-2020-11538 PYSEC-2020-80
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.
every version to 7.1.02020-06-25
CVE-2014-1933 GHSA-r854-96gq-rfg3
Pillow Temporary file name leakage
every version to 2.3.12020-05-18
CVE-2019-19911 GHSA-5gm3-px64-rw72
Uncontrolled Resource Consumption in Pillow
every version to 6.2.22020-04-01
CVE-2020-5313 GHSA-hj69-c76v-86wr
Out-of-bounds Read in Pillow
every version to 6.2.22020-04-01
CVE-2019-19911 PYSEC-2020-172
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
every version to 6.2.22020-01-05
CVE-2020-5310 PYSEC-2020-81
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
every version to 4e2def2539ec13e53a82e06c4b3daf00454100c4
every version to 6.2.2
2020-01-03
CVE-2020-5311 PYSEC-2020-82
libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.
every version to a79b65c47c7dc6fe623aadf09aa6192fc54548f3
every version to 6.2.2
2020-01-03
CVE-2020-5312 PYSEC-2020-83
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
every version to 93b22b846e0269ee9594ff71a72bec02d2bea8fd
every version to 6.2.2
2020-01-03
CVE-2020-5313 PYSEC-2020-84
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
every version to a09acd0decd8a87ccce939d5ff65dab59e7d365b
every version to 6.2.2
2020-01-03
CVE-2019-16865 GHSA-j7mj-748x-7p78
DOS attack in Pillow when processing specially crafted image files
every version to 6.2.02019-10-22
CVE-2019-16865 PYSEC-2019-110
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.
every version to 6.2.02019-10-04
CVE-2016-2533 GHSA-3c5c-7235-994j
Pillow buffer overflow in ImagingPcdDecode
every version to 3.1.12018-07-24
CVE-2016-0775 GHSA-8xjv-v9xq-m5h9
Pillow Buffer overflow in ImagingFliDecode
every version to 3.1.12018-07-24
CVE-2016-0740 GHSA-hggx-3h72-49ww
Pillow Buffer overflow in ImagingLibTiffDecode
every version to 3.1.12018-07-24
CVE-2016-4009 GHSA-hvr8-466p-75rh
Pillow Integer overflow in ImagingResampleHorizontal
every version to 3.1.12018-07-24
CVE-2016-9189 GHSA-rwr3-c2q8-gm56
Pillow Integer overflow in Map.c
every version to 3.3.22018-07-24
CVE-2016-9190 GHSA-w4vg-rf63-f3j3
Arbitrary code using "crafted image file" approach affecting Pillow
every version to 3.3.22018-07-12
CVE-2016-3076 PYSEC-2017-92
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.
2.5.0 to 3.1.22017-04-24
CVE-2016-9189 PYSEC-2016-8
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.
every version to 3.3.22016-11-04
CVE-2016-9190 PYSEC-2016-9
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.
every version to 3.3.22016-11-04
CVE-2016-2533 PYSEC-2016-19
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.
every version to 5bdf54b5a76b54fb00bd05f2d733e0a4173eefc9
every version to 3.1.1
2016-04-13
CVE-2016-0740 PYSEC-2016-5
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.
every version to 6dcbf5bd96b717c58d7b642949da8d323099928e
every version to 3.1.1
2016-04-13
CVE-2016-0775 PYSEC-2016-6
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.
every version to 893a40850c2d5da41537958e40569c029a6e127b
every version to 3.1.1
2016-04-13
CVE-2016-4009 PYSEC-2016-7
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.
every version to 4e0d9b0b9740d258ade40cce248c93777362ac1e
every version to 3.1.1
2016-04-13
CVE-2014-3598 PYSEC-2015-15
The Jpeg2KImagePlugin plugin in Pillow before 2.5.3 allows remote attackers to cause a denial of service via a crafted image.
every version to 2.5.32015-05-01
CVE-2014-9601 PYSEC-2015-16
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.
every version to 2.7.02015-01-16
CVE-2014-3589 PYSEC-2014-10
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.
every version to 205e056f8f9b06ed7b925cf8aa0874bc4aaf8a7d
every version to 2.3.2
2.5 to 2.5.2
2014-08-25
CVE-2014-3007 PYSEC-2014-87
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.
every version to 2.5.02014-04-27
CVE-2014-1932 PYSEC-2014-22
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
every version to 4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7
every version to 2.3.1
2014-04-17
CVE-2014-1933 PYSEC-2014-23
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 sym
every version to 4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7
every version to 2.3.1
2014-04-17

Advisories from OSV (GitHub, PyPA, RustSec, Go, OpenSSF malicious packages and more). Scan a whole lockfile on the scan page. Most exposed packages.