cbcvebase.

Python Pillow vulnerabilities

115 known vulnerabilities affecting python/pillow.

Total CVEs
115
CISA KEV
1
actively exploited
Public exploits
1
Exploited in wild
2
Severity breakdown
CRITICAL17HIGH64MEDIUM33LOW1

Vulnerabilities

Page 3 of 6
CVE-2026-112390P3HIGHCVSS 7.5≥ 7.2.0, < 13.0.02026-10-19
CVE-2026-112390 [HIGH] CWE-835 CVE-2026-112390: Pillow is a Python imaging library. From 7.2.0 until 13.0.0, Pillow can enter an infinite loop while 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 and its seek() resets TIFF frame state, so an embedded TIFF with at least three IFDs never advances. When an ap
ghsanvd
CVE-2026-112391P3HIGHCVSS 7.5≥ 5.1.0, < 13.0.02026-10-19
CVE-2026-112391 [HIGH] CWE-835 CVE-2026-112391: Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow's PdfParser.get_value() can recu 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 is opened for append. An attacker can provide a deeply nested PDF to an application that saves an image with PDF
ghsanvd
CVE-2026-112392P3HIGHCVSS 7.5fixed in 13.0.02026-10-19
CVE-2026-112392 [HIGH] CWE-476 CVE-2026-112392: Pillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference inv 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 the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause cre
ghsanvd
CVE-2026-96640P3HIGH≥ 5.1.0, < 13.0.02026-10-22
CVE-2026-96640 [HIGH] CWE-400 Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion ### Summary Pillow's documented PDF append path can spend disproportionate CPU time on a compact malformed PDF page tree. An attacker who can supply an existing PDF to an application that appends an image with `Image.save(..., format="PDF", append=True)` can provide a malformed `/Pages` tree where
ghsa
CVE-2023-5129HIGHCVSS 8.8Exploited≥ 0, < 10.0.12023-10-05
CVE-2023-5129 [HIGH] Duplicate Advisory: Bundled libwebp in Pillow vulnerable Duplicate Advisory: Bundled libwebp in Pillow vulnerable ## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-56pw-mpj4-fxww. This link is maintained to preserve external references. ## Original Description 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 bi
ghsaosv
CVE-2026-55379P3HIGHCVSS 7.5fixed in 12.3.02026-07-06
CVE-2026-55379 [HIGH] CWE-789 CVE-2026-55379: Pillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX widt 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_check(), bypassing Pillow's documented decompression bomb protection and allowing excessive memory allocation. Thi
ghsanvd
CVE-2020-11538P3HIGHCVSS 8.1≤ 7.0.02020-06-25
CVE-2020-11538 [HIGH] CWE-125 CVE-2020-11538: In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the p 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.
ghsanvdosv
CVE-2026-55380P3HIGHCVSS 7.5fixed in 12.3.02026-07-06
CVE-2026-55380 [HIGH] CWE-789 CVE-2026-55380: Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read ima 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 file to trigger excessive C-heap allocation when loaded. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-54059P3HIGHCVSS 7.5fixed in 12.3.02026-07-06
CVE-2026-54059 [HIGH] CWE-789 CVE-2026-54059: Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph d 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(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-59205P3HIGHCVSS 7.5fixed in 12.3.02026-07-14
CVE-2026-59205 [HIGH] CWE-787 CVE-2026-59205: Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, i 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 declared output mode. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-59204P3HIGHCVSS 7.5≥ 8.2.0, < 12.3.02026-07-14
CVE-2026-59204 [HIGH] CWE-789 CVE-2026-59204: Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumul 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 to force substantially higher transient memory usage and trigger out-of-memory failures during decoding. This iss
ghsanvd
CVE-2026-59199P3HIGHCVSS 7.5fixed in 12.3.02026-07-14
CVE-2026-59199 [HIGH] CWE-190 CVE-2026-59199: Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger 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.alpha_composite(). This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-112893P3HIGH≥ 10.0.0, < 13.0.02026-10-21
CVE-2026-112893 [HIGH] CWE-457 Pillow: Invalid free in FreeType glyph rendering when a stroker is active Pillow: Invalid free in FreeType glyph rendering when a stroker is active ### Summary When text is drawn with a non-zero stroke width, Pillow creates a FreeType stroker and then loads each glyph. If `FT_Load_Glyph` fails for a glyph, the cleanup path calls `FT_Done_Glyph` on the `glyph` variable. That variable is not initialized before the first measurement loop, and in the render loop it is
ghsa
CVE-2020-5310P3HIGHCVSS 8.8fixed in 6.2.22020-01-03
CVE-2020-5310 [HIGH] CWE-190 CVE-2020-5310: libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to real libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
ghsanvdosv
CVE-2026-42311P3HIGHCVSS 7.8≥ 10.3.0, < 12.2.02026-05-09
CVE-2026-42311 [HIGH] CWE-190 CVE-2026-42311: Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malic 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 version 12.2.0.
ghsanvd
CVE-2026-54060P3HIGHCVSS 7.5fixed in 12.3.02026-07-06
CVE-2026-54060 [HIGH] CWE-789 CVE-2026-54060: Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled pe 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 to trigger excessive allocation during conversion or saving. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-59203P3HIGHCVSS 7.5≥ 12.0.0, < 12.3.02026-07-14
CVE-2026-59203 [HIGH] CWE-835 CVE-2026-59203: Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImageP 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 to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2026-59200P3HIGHCVSS 7.5≥ 5.1.0, < 12.3.02026-07-14
CVE-2026-59200 [HIGH] CWE-400 CVE-2026-59200: Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/Pdf 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 crafted FlateDecode PDF stream to exhaust memory from a small file. This issue is fixed in version 12.3.0.
ghsanvd
CVE-2019-16865P3HIGHCVSS 7.5fixed in 6.2.02019-10-04
CVE-2019-16865 [HIGH] CWE-770 CVE-2019-16865: An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, 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.
ghsanvdosv
CVE-2016-9190P3HIGHCVSS 7.8≤ 3.3.12016-11-04
CVE-2016-9190 [HIGH] CWE-284 CVE-2016-9190: Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the "craft 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.
ghsanvdosv
Python Pillow vulnerabilities | cvebase