Python vulnerabilities, page 3
318 vulnerabilities
Known vulnerabilities in Python products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 32 products.
PrioritiseCVE-2026-97689urllib3 +189 moreurllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memoryurllib3 is an HTTP client library for Python. From 1.10.3 until 2.8.0, the HTTPResponse.read_chunked and HTTPResponse.stream methods can allocate unbounded memory because the streaming chunk parser buffers the chunk-size field until newline or EOF without a length bound. The trigger is that a malicious server returns Transfer-Encoding: chunked followed by a very long run of bytes without a newline. The attack mechanism is that a malicious HTTP server sends a very long unterminated chunk-size line. The impact is that unbounded memory allocation can exhaust the client process. This issue is fixed in version 2.8.0.CVSS8.9HighEPSS0.44%RoutineCVE-2026-97688urllib3 +185 moreurllib3: Chunked Deflate streaming can enter an infinite loopurllib3 is an HTTP client library for Python. From 2.6.2 until 2.8.0, HTTPResponse.stream and HTTPResponse.read_chunked can enter an infinite loop because the Deflate decoder retains trailing bytes as unconsumed input after reaching end-of-stream and repeatedly decodes them without progress. The issue occurs when an untrusted server sends a chunked Deflate response whose decoded body exceeds a positive finite chunk size and whose encoded body has trailing bytes, specifically a response with Transfer-Encoding: chunked and Content-Encoding: deflate, content decoding enabled, and the positive finite amt=N streaming chunk size. The attack mechanism is that a malicious server returns a compressed chunked response with trailing bytes after the Deflate stream. The impact is excessive CPU usage and a request that does not complete, and network read timeouts do not interrupt the loop because no further socket read occurs. This issue is fixed in version 2.8.0.CVSS6.9MediumEPSS0.29%RoutineCVE-2026-97687urllib3 +185 moreurllib3: HTTPS proxy TLS configuration may be ignored or overriddenurllib3 is an HTTP client library for Python. From 1.26.0 until 2.8.0, the proxy_ssl_context, proxy_assert_hostname, proxy_assert_fingerprint, ssl_context, cert_reqs, verify_mode, use_forwarding_for_https=True, and CERT_NONE configuration paths fail to remain separated because target-server TLS settings are incorrectly applied to the HTTPS proxy connection. The trigger is that an application uses an HTTPS proxy and configures target-server TLS settings that must remain separate from the proxy TLS handshake, including HTTPS forwarding with target-specific identity or credentials. Applying cert_reqs=CERT_NONE can overwrite proxy_ssl_context.verify_mode in place, and the mutation persists so later connections reusing the same context may connect to the HTTPS proxy without certificate verification. The attack mechanism is that an attacker intercepts and impersonates the HTTPS proxy after the effective proxy policy accepts the attacker's certificate. The impact is that the attacker can observe or modify forwarded traffic or receive a target TLS client certificate, while CONNECT tunneling still preserves the separate end-to-end target TLS connection. This issue is fixed in version 2.8.0.CVSS8.1HighEPSS0.24%PrioritiseCVE-2026-54058python-pillow · pillow +26 morePillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)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 width, causing pixel access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. This issue is fixed in version 12.3.0.CVSS9.1CriticalEPSS0.48%PrioritiseCVE-2026-59197python-pillow · pillow +25 morePillow: Heap out-of-bounds write in Pillow `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`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, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.CVSS8.2HighEPSS0.45%PrioritiseCVE-2026-59200python-pillow · pillow +25 morePillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()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.CVSS7.5HighEPSS0.39%RoutineCVE-2026-59198python-pillow · pillow +25 morePillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated imagesPillow 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 generated TGA file. This issue is fixed in version 12.3.0.CVSS7.5HighEPSS0.31%PrioritiseCVE-2026-59205python-pillow · pillow +25 morePillow: Controlled heap out-of-bounds write in `ImageCmsTransform.apply()` via output mode mismatchPillow 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.CVSS7.5HighEPSS0.39%RoutineCVE-2026-59203python-pillow · pillow +24 morePillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of servicePillow 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.CVSS7.5HighEPSS0.49%PrioritiseCVE-2026-59199python-pillow · pillow +25 morePillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflowPillow 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.CVSS7.5HighEPSS0.39%PrioritiseCVE-2026-59204python-pillow · pillow +25 morePillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of servicePillow 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 issue is fixed in version 12.3.0.CVSS8.7HighEPSS0.39%PrioritiseCVE-2026-15308python software foundation · cpython +77 moreIncremental HTMLParser feed() allows CPU-exhaustion DoS via repeated unterminated markup declarationsThe incremental HTML parser (html.parser.HTMLParser) allows for CPU
denial-of-service through repeated unterminated markup declarations when
processing uncontrolled data.CVSS8.7HighEPSS0.78%RoutineCVE-2026-59890pypa · setuptools +208 moresetuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.CVSS6.1MediumEPSS0.53%PrioritiseCVE-2026-55379python-pillow · pillow +26 morePillow BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loadingPillow 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. This issue is fixed in version 12.3.0.CVSS7.5HighEPSS0.52%PrioritiseCVE-2026-55380python-pillow · pillow +26 morePillow GdImageFile decompression bomb protection bypassPillow 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.CVSS7.5HighEPSS0.52%PrioritiseCVE-2026-54060python-pillow · pillow +26 morePillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`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.CVSS7.5HighEPSS0.42%PrioritiseCVE-2026-54059python-pillow · pillow +26 morePillow: PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loadingPillow 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.CVSS7.5HighEPSS0.41%RoutineCVE-2026-55798python-pillow · pillow +25 morePillow: WindowsViewer.get_command() OS command injection via unescaped shell pathPillow 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=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.CVSS4.5MediumEPSS0.20%RoutineCVE-2026-4360python software foundation · cpython +65 moreTarfile.extract() doesn't fully respect filter parameterIn the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.CVSS5.3MediumEPSS0.28%RoutineCVE-2026-0864python software foundation · cpython +28 moreConfiguration Injection via Carriage Return (\r) in write() methodWhen using the "configparser" module to write configuration files
containing multi-line text values with carriage return characters (\r) the
resulting file could be injected with unexpected keys and values if the
attacker controls the written value.CVSS5.5MediumEPSS0.13%