© 2025-2026 PySpect
No release of pillow is currently known to be free of vulnerabilities.
Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
Fixed in: 13.0.0
Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
Fixed in: 13.0.0
Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Fixed in: 13.0.0
Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
Fixed in: 13.0.0
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()
Fixed in: 13.0.0
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
Fixed in: 13.0.0
Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
Fixed in: 13.0.0
Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
Fixed in: 13.0.0
Pillow: TarIO negative size field causes infinite CPU-spin loop
Fixed in: 13.0.0
Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
Fixed in: 13.0.0
Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
Fixed in: 13.0.0
Pillow multi-frame loaders can reuse stale native image storage after mode transitions
Fixed in: 13.0.0
Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
Fixed in: 13.0.0
Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
Fixed in: 13.0.0
Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
Fixed in: 13.0.0
Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
Fixed in: 13.0.0
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Fixed in: 13.0.0
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
Fixed in: 13.0.0
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
Fixed in: 13.0.0
Pillow: APNG background disposal allocates full canvas before decompression bomb check
Fixed in: 13.0.0
Pillow: MSP RLE decoder expands a tiny file into unbounded memory
Fixed in: 13.0.0
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Fixed in: 13.0.0
Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
Fixed in: 13.0.0
Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
Fixed in: 13.0.0
Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
Fixed in: 13.0.0
Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
Fixed in: 13.0.0
Pillow: Infinite loop in MIC n_frames when the embedded TIFF
Fixed in: 13.0.0
Pillow: Quadratic GIF comment copying during save
Fixed in: 13.0.0
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Fixed in: 13.0.0
Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
Fixed in: 13.0.0
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
Fixed in: 13.0.0
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
Fixed in: 13.0.0
Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
Fixed in: 13.0.0
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Fixed in: 13.0.0
Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
Fixed in: 13.0.0
Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
Fixed in: 13.0.0
Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
Fixed in: 13.0.0
Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
Fixed in: 13.0.0
Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
Fixed in: 13.0.0
Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
Fixed in: 13.0.0
Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
Fixed in: 13.0.0
Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
Fixed in: 13.0.0
Pillow: Heap buffer overflow in ImagingJpegDecode
Fixed in: 13.0.0
Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
Fixed in: 12.3.0
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
Fixed in: 12.3.0
Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
Fixed in: 12.3.0
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
Fixed in: 12.3.0
Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
Fixed in: 12.3.0
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
Fixed in: 12.3.0
Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
Fixed in: 12.3.0
Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
Fixed in: 12.3.0
Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
Fixed in: 12.3.0
Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
Fixed in: 12.3.0
Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
Fixed in: 12.3.0
Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
Fixed in: 12.3.0
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
Fixed in: 12.3.0
Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Fixed in: 12.2.0
Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
Fixed in: 12.2.0
Pillow has an integer overflow when processing fonts
Fixed in: 12.2.0
Pillow has a heap buffer overflow with nested list coordinates
Fixed in: 12.2.0
FITS GZIP decompression bomb in Pillow
Fixed in: 12.2.0
Pillow affected by out-of-bounds write when loading PSD images
Fixed in: 12.1.1
Pillow vulnerability can cause write buffer overflow on BCn encoding
Fixed in: 11.3.0, 89f1f4626a2aaf5f3d5ca6437f41def2998fbe09, ef98b3510e3e4f14b547762764813d7e5ca3c5a4
Pillow buffer overflow vulnerability
Fixed in: 10.3.0
Arbitrary Code Execution in Pillow
Fixed in: 10.2.0
Pillow Denial of Service vulnerability
Fixed in: 10.0.0, 1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
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.
Fixed in: 10.0.1
libwebp: OOB write in BuildHuffmanTable
Fixed in: 0.1.8, 0.9.3, 22.3.24, 24.8.3, 25.8.1, 26.2.1, 27.0.0-beta.2, 2.88.6, 1.4.0, 10.0.1, 0.2.6, 13.3.0, 0.0.0-20250406010349-76805d5a8860, 1.1.2-0.20250406010349-76805d5a8860
Pillow vulnerable to Data Amplification attack.
Fixed in: 9.2.0, 11918eac0628ec8ac0812670d9838361ead2d6a4
Pillow subject to DoS via SAMPLESPERPIXEL tag
Fixed in: 9.3.0, 2444cddab2f83f28687c7c20871574acbb6dbcf3
Invalid-free in _dealloc
Fixed in: f7363c1091c70356d92e56abfca6b65bef9e7b26
Segv on unknown address in jpeg_read_scanlines
Fixed in: 9887544fafcd13cc8afcfa0c6d0f2e6facc1a8b8
Buffer over-flow in Pillow
Fixed in: 9.1.1
Buffer Copy without Checking Size of Input in Pillow
Fixed in: 6.2.2, a79b65c47c7dc6fe623aadf09aa6192fc54548f3
Pillow command injection
Fixed in: 2.5.0
Pillow Buffer overflow in Jpeg2KEncode.c
Fixed in: 3.1.2
PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles
Fixed in: 2.3.1, 4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7
Pillow denial of service via PNG bomb
Fixed in: 2.7.0
Pillow denial of service via Crafted Block Size
Fixed in: 2.3.2, 2.5.2, 205e056f8f9b06ed7b925cf8aa0874bc4aaf8a7d
Pillow is vulnerable to Denial of Service (DOS) in the Jpeg2KImagePlugin
Fixed in: 2.5.3
Infinite loop in Pillow
Fixed in: 9.0.0
Path traversal in Pillow
Fixed in: 9.0.1
Improper Initialization in Pillow
Fixed in: 9.0.0
Out-of-bounds Read in Pillow
Fixed in: 9.0.0
Arbitrary expression injection in Pillow
Fixed in: 9.0.1, 9.0.0
PCX P mode buffer overflow in Pillow
Fixed in: 6.2.2, 93b22b846e0269ee9594ff71a72bec02d2bea8fd
Out-of-bounds read in Pillow
Fixed in: 7.1.0, 6a83e4324738bb0452fbe8074a995b1c73f08de7
Integer overflow in Pillow
Fixed in: 6.2.2, 4e2def2539ec13e53a82e06c4b3daf00454100c4
Buffer Overflow in Pillow
Fixed in: 8.3.0
Uncontrolled Resource Consumption in pillow
Fixed in: 8.3.2, 9e08eb8f78fdfd2f476e1b20b7cf38683754866b
Uncontrolled Resource Consumption in Pillow
Fixed in: 8.2.0
Pillow Out-of-bounds Read vulnerability
Fixed in: 8.2.0
Insufficient Verification of Data Authenticity in Pillow
Fixed in: 8.2.0
Pillow denial of service
Fixed in: 8.2.0
Out-of-bounds Read in Pillow
Fixed in: 8.2.0
Potential infinite loop in Pillow
Fixed in: 8.2.0
Out of bounds read in Pillow
Fixed in: 8.2.0, 8.1.1
Regular Expression Denial of Service (ReDoS) in Pillow
Fixed in: 8.1.1
Out-of-bounds Write in Pillow
Fixed in: 8.1.1
Out of bounds read in Pillow
Fixed in: 8.1.1
Out of bounds write in Pillow
Fixed in: 8.1.1
Pillow Out-of-bounds Read
Fixed in: 8.1.0
Pillow Out-of-bounds Read
Fixed in: 8.1.0
Pillow Out-of-bounds Write
Fixed in: 8.1.0
Pillow Uncontrolled Resource Consumption
Fixed in: 8.1.2, 8.1.1
Pillow Denial of Service by Uncontrolled Resource Consumption
Fixed in: 8.1.2, 8.1.1
Pillow Denial of Service by Uncontrolled Resource Consumption
Fixed in: 8.1.2, 8.1.1
Out-of-bounds reads in Pillow
Fixed in: 7.1.0
Buffer overflow in Pillow
Fixed in: 7.1.0, 46f4a349b88915787fea3fb91348bb1665831bbb
Out-of-bounds reads in Pillow
Fixed in: 7.1.0, 7.0.0
Out-of-bounds read in Pillow
Fixed in: 7.1.0
Pillow Temporary file name leakage
Fixed in: 2.3.1, 4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7
Uncontrolled Resource Consumption in Pillow
Fixed in: 6.2.2
Out-of-bounds Read in Pillow
Fixed in: 6.2.2, a09acd0decd8a87ccce939d5ff65dab59e7d365b
DOS attack in Pillow when processing specially crafted image files
Fixed in: 6.2.0
Pillow Integer overflow in ImagingResampleHorizontal
Fixed in: 3.1.1, 4e0d9b0b9740d258ade40cce248c93777362ac1e
Pillow Buffer overflow in ImagingFliDecode
Fixed in: 3.1.1, 893a40850c2d5da41537958e40569c029a6e127b
Pillow buffer overflow in ImagingPcdDecode
Fixed in: 3.1.1, 5bdf54b5a76b54fb00bd05f2d733e0a4173eefc9, ae453aa18b66af54e7ff716f4ccb33adca60afd4
Pillow Integer overflow in Map.c
Fixed in: 3.3.2
Pillow Buffer overflow in ImagingLibTiffDecode
Fixed in: 3.1.1, 6dcbf5bd96b717c58d7b642949da8d323099928e
Arbitrary code using "crafted image file" approach affecting Pillow
Fixed in: 3.3.2