pillow
PyPI112 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 2 of 3
- CVE-2023-44271HIGHCVSS 7.5EG 7.5fixed in 10.0.02023-11-03
vulnerable: 1.0 ... 2.9.0.dev0 (97 versions)
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 Ima…
- CVE-2023-4863CRITICALCVSS 8.8EG 9.0⚠ KEVfixed in 10.0.12023-09-12
vulnerable: 1.0 ... 9.5.0 (93 versions)
Heap buffer overflow in libwebp in Google Chrome prior to 116.0.5845.187 and libwebp 1.3.2 allowed a remote attacker to perform an out of bounds memory write via a crafted HTML page. (Chromium security severity: Critical)
- CVE-2023-50447HIGHCVSS 8.1EG 8.1fixed in 10.2.02024-01-19
vulnerable: 1.0 ... 9.5.0 (95 versions)
Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).
- CVE-2024-28219MEDIUMCVSS 6.7EG 6.7fixed in 10.3.02024-04-03
vulnerable: 1.0 ... 9.5.0 (96 versions)
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
- CVE-2025-48379HIGHCVSS 7.1EG 7.1fixed in 11.3.02025-07-01
vulnerable: 11.2.0, 11.2.1
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 ch…
- CVE-2026-112390HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (34 versions)
Pillow is a Python imaging library. From 7.2.0 until 13.0.0, Pillow can enter an infinite loop while determining the frame count of a MIC image. MicImageFile inherits TIFF frame traversal, but MicImageFile.tell reports the OLE stream index…
- CVE-2026-112391HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (49 versions)
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow's PdfParser.get_value() can recurse without a limit while reading nested PDF objects. The parser follows attacker-controlled arrays and dictionaries when an existing PDF i…
- CVE-2026-112392HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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 t…
- CVE-2026-112393CRITICALCVSS 9.8EG 9.8fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (91 versions)
Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as Byte…
- CVE-2026-112394HIGHCVSS 8.2EG 8.2fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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. …
- CVE-2026-112395HIGHCVSS 8.2EG 8.2fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (28 versions)
Pillow is a Python imaging library. From 8.2.0 until 13.0.0, Pillow's tiled-TIFF decoder can read past the tile buffer while copying four-byte pixels. In _decodeTile, libtiff can return a tile allocation smaller than the required row strid…
- CVE-2026-112396HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 11.3.0 ... 12.3.0 (6 versions)
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, …
- CVE-2026-112397HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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…
- CVE-2026-112398CRITICALCVSS 9.8EG 9.8fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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 unre…
- CVE-2026-112399HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (31 versions)
Pillow is a Python imaging library. From 8.1.0 until 13.0.0, Pillow can allocate an APNG disposal background at the full canvas size before applying the decompression-bomb check. A crafted APNG with a small first frame, a very large declar…
- CVE-2026-112400HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (19 versions)
Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow can retain a rejected GIF frame size after a decompression-bomb exception. In GifImageFile._seek, a crafted GIF can leave rejected dimensions stored after Image.Decompress…
- CVE-2026-112401HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (45 versions)
Pillow is a Python imaging library. From 5.4.0 until 13.0.0, Pillow performs quadratic copying while parsing GIF comments. GifImageFile._seek() repeatedly appends immutable bytes for comment sub-blocks and multiple comment extensions, and …
- CVE-2026-112402HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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 Transfo…
- CVE-2026-112403CRITICALCVSS 9.8EG 9.8fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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…
- CVE-2026-112404HIGHCVSS 8.2EG 8.2fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (31 versions)
Pillow is a Python imaging library. From 8.1.0 until 13.0.0, Pillow's TIFF tile and RGBA decode paths can read beyond row data produced by libtiff. In _decodeTile and the RGBA unpacker path, when Pillow and libtiff interpret duplicated Pho…
- CVE-2026-112405HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 12.0.0, 12.1.0, 12.1.1, 12.2.0, 12.3.0
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…
- CVE-2026-112406HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (49 versions)
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can enter an infinite loop while rewriting PDF pages. PdfParser.rewrite_pages() follows Parent relationships without detecting a cycle in the page tree. An attacker can su…
- CVE-2026-112891HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (19 versions)
Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow performs quadratic copying when saving a GIF with a long comment. _get_global_header() repeatedly copies portions of comment data while assembling the global header, inclu…
- CVE-2026-112892HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (55 versions)
Pillow is a Python imaging library. From 4.1.0 until 13.0.0, Pillow's MSP RLE decoder can expand a small file into an unbounded in-memory buffer. The decoder writes run-length output to BytesIO without limiting expansion to the declared im…
- CVE-2026-112893HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 12.3.0 (15 versions)
Pillow is a Python imaging library. From 10.0.0 until 13.0.0, Pillow can free an invalid glyph pointer during FreeType rendering with an active stroker. If FT_Load_Glyph fails, cleanup may call FT_Done_Glyph on an uninitialized or stale gl…
- CVE-2026-112894HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (49 versions)
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow takes quadratic time to reserve PDF object identifiers when saving many frames with save_all enabled. PdfParser.next_object_id() repeatedly rebuilds and scans all previous…
- CVE-2026-112895HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (49 versions)
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can exhaust resources while parsing an existing PDF during an append operation. PdfParser follows page-tree child references without cycle or duplication tracking and foll…
- CVE-2026-112896HIGHCVSS 7.1EG 7.1fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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 …
- CVE-2026-112897MEDIUMCVSS 6.2EG 6.2fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (47 versions)
Pillow is a Python imaging library. From 5.3.0 until 13.0.0, Pillow can return uninitialized memory as pixels when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The _decodeStrip and _decodeTile buffers can be…
- CVE-2026-112898MEDIUMCVSS 5.3EG 5.3fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (21 versions)
Pillow is a Python imaging library. From 9.1.0 until 13.0.0, Pillow can disclose uninitialized stack memory when Image.quantize() uses an empty palette. ImagingPaletteCacheUpdate() leaves a local cache array uninitialized when the palette …
- CVE-2026-112900CRITICALCVSS 9.8EG 9.8fixed in 13.0.02026-10-19
vulnerable: 10.0.0 ... 9.5.0 (78 versions)
Pillow is a Python imaging library. From 2.6.0 until 13.0.0, Pillow is vulnerable to argument injection when invoking Ghostscript for EPS input. EpsImagePlugin.Ghostscript passes a caller-controlled input filename after -f without converti…
- CVE-2026-112901HIGHCVSS 7.5EG 7.5fixed in 13.0.02026-10-19
vulnerable: 1.0 ... 9.5.0 (107 versions)
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, XbmImagePlugi…
- CVE-2026-114501MEDIUMCVSS 5.3EG 5.3fixed in 13.0.02026-10-21
vulnerable: 11.2.1 ... 12.3.0 (7 versions)
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 a…
- CVE-2026-25990HIGHCVSS 7.5EG 7.5fixed in 12.1.12026-02-11
vulnerable: 10.3.0 ... 12.1.0 (8 versions)
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.
- CVE-2026-40192HIGHCVSS 7.5EG 7.5fixed in 12.2.02026-04-15
vulnerable: 10.3.0 ... 12.1.1 (9 versions)
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 …
- CVE-2026-42308MEDIUMCVSS 5.5EG 5.5fixed in 12.2.02026-05-09
vulnerable: 1.0 ... 9.5.0 (105 versions)
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 i…
- CVE-2026-42309MEDIUMCVSS 5.5EG 5.5fixed in 12.2.02026-05-09
vulnerable: 11.2.1, 11.3.0, 12.0.0, 12.1.0, 12.1.1
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 ca…
- CVE-2026-42310MEDIUMCVSS 5.5EG 5.5fixed in 12.2.02026-05-09
vulnerable: 10.0.0 ... 9.5.0 (51 versions)
Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue ha…
- CVE-2026-42311HIGHCVSS 7.8EG 7.8fixed in 12.2.02026-05-09
vulnerable: 10.3.0 ... 12.1.1 (9 versions)
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…
- CVE-2026-54058CRITICALCVSS 9.1EG 9.1fixed in 12.3.02026-07-14
vulnerable: 1.0 ... 9.5.0 (106 versions)
Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row wi…
- CVE-2026-54059HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-06
vulnerable: 1.0 ... 9.5.0 (106 versions)
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(), all…
- CVE-2026-54060HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-06
vulnerable: 1.0 ... 9.5.0 (106 versions)
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 fon…
- CVE-2026-55379HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-06
vulnerable: 1.0 ... 9.5.0 (106 versions)
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_…
- CVE-2026-55380HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-06
vulnerable: 1.0 ... 9.5.0 (106 versions)
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 .g…
- CVE-2026-55798MEDIUMCVSS 4.5EG 4.5fixed in 12.3.02026-07-06
vulnerable: 1.0 ... 9.5.0 (106 versions)
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=T…
- CVE-2026-59197HIGHCVSS 8.2EG 8.2fixed in 12.3.02026-07-14
vulnerable: 1.0 ... 9.5.0 (106 versions)
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…
- CVE-2026-59198HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-14
vulnerable: 10.0.0 ... 9.5.0 (47 versions)
Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generate…
- CVE-2026-59199HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-14
vulnerable: 1.0 ... 9.5.0 (106 versions)
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.al…
- CVE-2026-59200HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-14
vulnerable: 10.0.0 ... 9.5.0 (48 versions)
Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a…
- CVE-2026-59203HIGHCVSS 7.5EG 7.5fixed in 12.3.02026-07-14
vulnerable: 12.0.0, 12.1.0, 12.1.1, 12.2.0
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 …
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.
Book a Demo →