pillow
PyPI74 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 2
- CVE-2023-44271HIGHCVSS 7.5EG 7.5✓ Fixed 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-4863HIGHCVSS 8.8EG 9.0⚠ KEV✓ Fixed 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.1✓ Fixed 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.7✓ Fixed 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.1✓ Fixed 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-25990HIGHCVSS 7.5EG 7.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.8✓ Fixed 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-54058HIGHCVSS 8.3EG 8.3✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.2✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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 …
- CVE-2026-59204HIGHCVSS 7.5EG 7.5✓ Fixed in 12.3.02026-07-14
vulnerable: 10.0.0 ... 9.5.0 (27 versions)
Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000 image instead of recomputing it per tile, allowing a crafted tiled JPEG2000 file…
- CVE-2026-59205HIGHCVSS 7.5EG 7.5✓ Fixed 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 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 …
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.
Start Free Scan →