pillow vulnerabilities
Python Imaging Library (fork)
- Registry
- PyPI
- Latest
- 13.0.0
- License
- MIT-CMU
121 known advisories
The latest version, 13.0.0, is not affected by any of them. Projects on older versions may be.
pip install 'pillow>=13.0.0'Is your project on an affected pillow?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for pillow
Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
- Affected
- >=11.2.1 <13.0.0
- 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()
- Affected
- >=11.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
- Affected
- >=9.4.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
- Affected
- >=11.0.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: TarIO negative size field causes infinite CPU-spin loop
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
- Affected
- >=5.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow multi-frame loaders can reuse stale native image storage after mode transitions
- Affected
- >=11.0.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
- Affected
- >=9.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
- Affected
- >=5.4.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
- Affected
- >=2.0.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
- Affected
- >=11.3.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
- Affected
- >=5.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: APNG background disposal allocates full canvas before decompression bomb check
- Affected
- >=8.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: MSP RLE decoder expands a tiny file into unbounded memory
- Affected
- >=4.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
- Affected
- >=5.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
- Affected
- >=5.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
- Affected
- >=9.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
- Affected
- >=5.4.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Infinite loop in MIC n_frames when the embedded TIFF
- Affected
- >=7.2.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Quadratic GIF comment copying during save
- Affected
- >=9.2.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
- Affected
- >=12.0.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
- Affected
- >=10.0.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
- Affected
- >=2.6.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
- Affected
- >=9.2.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
- Affected
- >=2.3.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
- Affected
- >=5.3.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
- Affected
- >=5.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
- Affected
- >=8.2.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
- Affected
- >=8.1.0 <13.0.0
- Fixed in
- 13.0.0
Pillow: Heap buffer overflow in ImagingJpegDecode
- Affected
- <13.0.0
- Fixed in
- 13.0.0
Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
- Affected
- >=8.2.0 <12.3.0
- Fixed in
- 12.3.0
Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
- Affected
- >=12.0.0 <12.3.0
- Fixed in
- 12.3.0
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
- Affected
- >=5.1.0 <12.3.0
- Fixed in
- 12.3.0
Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
- Affected
- >=5.2.0 <12.3.0
- Fixed in
- 12.3.0
Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
- Affected
- <12.3.0
- Fixed in
- 12.3.0
Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
- Affected
- >=10.3.0 <12.2.0
- Fixed in
- 12.2.0
Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
- Affected
- >=4.2.0 <12.2.0
- Fixed in
- 12.2.0
Pillow has an integer overflow when processing fonts
- Affected
- <12.2.0
- Fixed in
- 12.2.0
Pillow has a heap buffer overflow with nested list coordinates
- Affected
- >=11.2.1 <12.2.0
- Fixed in
- 12.2.0
FITS GZIP decompression bomb in Pillow
- Affected
- >=10.3.0 <12.2.0
- Fixed in
- 12.2.0
Pillow affected by out-of-bounds write when loading PSD images
- Affected
- >=10.3.0 <12.1.1
- Fixed in
- 12.1.1
Pillow vulnerability can cause write buffer overflow on BCn encoding
- Affected
- >=11.2.0 <11.3.0
- Fixed in
- 11.3.0
Pillow buffer overflow vulnerability
- Affected
- <10.3.0
- Fixed in
- 10.3.0
Arbitrary Code Execution in Pillow
- Affected
- <10.2.0
- Fixed in
- 10.2.0
Pillow Denial of Service vulnerability
- Affected
- <10.0.0
- Fixed in
- 10.0.0
No summary published
- Affected
- <10.0.1
- Fixed in
- 10.0.1
libwebp: OOB write in BuildHuffmanTable
- Affected
- <10.0.1
- Fixed in
- 10.0.1
Pillow vulnerable to Data Amplification attack.
- Affected
- <9.2.0
- Fixed in
- 9.2.0
Pillow subject to DoS via SAMPLESPERPIXEL tag
- Affected
- >=9.2.0 <9.3.0
- Fixed in
- 9.3.0
Invalid-free in _dealloc
- Affected
- See advisory
- Fixed in
- No fix released
Segv on unknown address in jpeg_read_scanlines
- Affected
- See advisory
- Fixed in
- No fix released
Buffer over-flow in Pillow
- Affected
- >=9.1.0 <9.1.1
- Fixed in
- 9.1.1
Buffer Copy without Checking Size of Input in Pillow
- Affected
- <6.2.2
- Fixed in
- 6.2.2
Pillow command injection
- Affected
- <2.5.0
- Fixed in
- 2.5.0
Pillow Buffer overflow in Jpeg2KEncode.c
- Affected
- >=2.5.0 <3.1.2
- Fixed in
- 3.1.2
PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles
- Affected
- <2.3.1
- Fixed in
- 2.3.1
Pillow denial of service via PNG bomb
- Affected
- <2.7.0
- Fixed in
- 2.7.0
Pillow denial of service via Crafted Block Size
- Affected
- <2.3.2 · >=2.5 <2.5.2
- Fixed in
- 2.3.2, 2.5.2
Pillow is vulnerable to Denial of Service (DOS) in the Jpeg2KImagePlugin
- Affected
- <2.5.3
- Fixed in
- 2.5.3
Infinite loop in Pillow
- Affected
- <9.0.0
- Fixed in
- 9.0.0
Path traversal in Pillow
- Affected
- <9.0.1
- Fixed in
- 9.0.1
Improper Initialization in Pillow
- Affected
- <9.0.0
- Fixed in
- 9.0.0
Out-of-bounds Read in Pillow
- Affected
- <9.0.0
- Fixed in
- 9.0.0
Arbitrary expression injection in Pillow
- Affected
- <9.0.1
- Fixed in
- 9.0.1
PCX P mode buffer overflow in Pillow
- Affected
- <6.2.2
- Fixed in
- 6.2.2
Out-of-bounds read in Pillow
- Affected
- <7.1.0
- Fixed in
- 7.1.0
Integer overflow in Pillow
- Affected
- <6.2.2
- Fixed in
- 6.2.2
Buffer Overflow in Pillow
- Affected
- <8.3.0
- Fixed in
- 8.3.0
Uncontrolled Resource Consumption in pillow
- Affected
- >=5.2.0 <8.3.2
- Fixed in
- 8.3.2
Uncontrolled Resource Consumption in Pillow
- Affected
- <8.2.0
- Fixed in
- 8.2.0
Pillow Out-of-bounds Read vulnerability
- Affected
- >=2.4.0 <8.2.0
- Fixed in
- 8.2.0
Insufficient Verification of Data Authenticity in Pillow
- Affected
- >=5.1.0 <8.2.0
- Fixed in
- 8.2.0
Pillow denial of service
- Affected
- <8.2.0
- Fixed in
- 8.2.0
Out-of-bounds Read in Pillow
- Affected
- >=2.4.0 <8.2.0
- Fixed in
- 8.2.0
Potential infinite loop in Pillow
- Affected
- <8.2.0
- Fixed in
- 8.2.0
Out of bounds read in Pillow
- Affected
- <8.2.0
- Fixed in
- 8.2.0
Regular Expression Denial of Service (ReDoS) in Pillow
- Affected
- >=5.1.0 <8.1.1
- Fixed in
- 8.1.1
Out-of-bounds Write in Pillow
- Affected
- <8.1.1
- Fixed in
- 8.1.1
Out of bounds read in Pillow
- Affected
- >=4.3.0 <8.1.1
- Fixed in
- 8.1.1
Out of bounds write in Pillow
- Affected
- <8.1.1
- Fixed in
- 8.1.1
Pillow Out-of-bounds Read
- Affected
- <8.1.0
- Fixed in
- 8.1.0
Pillow Out-of-bounds Read
- Affected
- >=4.3.0 <8.1.0
- Fixed in
- 8.1.0
Pillow Out-of-bounds Write
- Affected
- <8.1.0
- Fixed in
- 8.1.0
Pillow Uncontrolled Resource Consumption
- Affected
- <8.1.2
- Fixed in
- 8.1.2
Pillow Denial of Service by Uncontrolled Resource Consumption
- Affected
- <8.1.2
- Fixed in
- 8.1.2
Pillow Denial of Service by Uncontrolled Resource Consumption
- Affected
- <8.1.2
- Fixed in
- 8.1.2
Out-of-bounds reads in Pillow
- Affected
- <7.1.0
- Fixed in
- 7.1.0
Buffer overflow in Pillow
- Affected
- <7.1.0
- Fixed in
- 7.1.0
Out-of-bounds reads in Pillow
- Affected
- <7.1.0
- Fixed in
- 7.1.0
Out-of-bounds read in Pillow
- Affected
- <7.1.0
- Fixed in
- 7.1.0
Pillow Temporary file name leakage
- Affected
- <2.3.1
- Fixed in
- 2.3.1
Uncontrolled Resource Consumption in Pillow
- Affected
- <6.2.2
- Fixed in
- 6.2.2
Out-of-bounds Read in Pillow
- Affected
- <6.2.2
- Fixed in
- 6.2.2
DOS attack in Pillow when processing specially crafted image files
- Affected
- <6.2.0
- Fixed in
- 6.2.0
Pillow Integer overflow in ImagingResampleHorizontal
- Affected
- <3.1.1
- Fixed in
- 3.1.1
Pillow Buffer overflow in ImagingFliDecode
- Affected
- <3.1.1
- Fixed in
- 3.1.1
Pillow buffer overflow in ImagingPcdDecode
- Affected
- <3.1.1
- Fixed in
- 3.1.1
Pillow Integer overflow in Map.c
- Affected
- <3.3.2
- Fixed in
- 3.3.2
Pillow Buffer overflow in ImagingLibTiffDecode
- Affected
- <3.1.1
- Fixed in
- 3.1.1
Arbitrary code using "crafted image file" approach affecting Pillow
- Affected
- <3.3.2
- Fixed in
- 3.3.2
Is your pillow version vulnerable?
- pillow 13.0No known advisories in 13.0.0
- pillow 12.343 advisories in 12.3.0
- pillow 12.256 advisories in 12.2.0
- pillow 12.161 advisories in 12.1.1
- pillow 12.062 advisories in 12.0.0
- pillow 11.360 advisories in 11.3.0
- pillow 11.260 advisories in 11.2.1
- pillow 11.157 advisories in 11.1.0
- pillow 11.056 advisories in 11.0.0
Which of your client projects still run an old pillow?
NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other PyPI packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.