SB2026112385 - Ubuntu update for pillow



SB2026112385 - Ubuntu update for pillow

Published: November 23, 2026

Security Bulletin ID SB2026112385
CSH Severity
High
Patch available
YES
Number of vulnerabilities 39
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 15% Medium 82% Low 3%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 39 vulnerabilities.


1) Infinite loop (CVE-ID: CVE-2026-42310)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to an infinite loop in PdfParser when parsing a malicious PDF trailer with cyclic Prev pointers. A remote attacker can supply a specially crafted PDF file to cause a denial of service.

The issue can cause the process to hang indefinitely, consume 100% CPU, and make the application unresponsive.


2) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-112894)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by consuming excessive CPU time in an image-to-PDF conversion worker.

The vulnerability exists due to quadratic-time object ID allocation in Pillow's PDF writer when saving all frames as a multi-page PDF, because the allocator rebuilds and scans the set of reserved IDs for each new ID. A remote attacker can submit an image for multi-page PDF conversion to trigger excessive processing based on its actual or declared frame count.


3) Uncontrolled Recursion (CVE-ID: CVE-2026-112895)

CWE-ID: CWE-674 - Uncontrolled Recursion

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU and memory consumption or an uncaught recursion error.

The vulnerability exists due to uncontrolled recursion in Pillow's PdfParser.linearize_page_tree function when parsing an existing PDF for an append operation. A remote attacker can supply a crafted PDF containing cyclic or duplicated /Kids references to trigger unbounded recursion or excessive processing and cause a denial of service.


4) Out-of-bounds read (CVE-ID: CVE-2026-112896)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to trigger an out-of-bounds heap read that can terminate the process and may expose process memory.

The vulnerability exists due to an out-of-bounds read in Pillow's libtiff-backed TIFF encoder when saving an image with retained ColorMap metadata whose plane size is inconsistent with the sample depth. A remote attacker can supply a crafted 16-bit TIFF containing 768 SHORT ColorMap values that an application loads and saves with the relevant metadata retained to trigger a 131072-byte read from a plane pointer within a 1536-byte allocation, potentially terminating the process or exposing process memory during encoding.


5) Use of uninitialized resource (CVE-ID: CVE-2026-112897)

CWE-ID: CWE-908 - Use of Uninitialized Resource

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose previously used heap memory from an application processing attacker-supplied TIFF images.

The vulnerability exists due to use of uninitialized heap memory in the _decodeStrip() and _decodeTile() functions in Pillow's src/libImaging/TiffDecode.c when decoding TIFF strips or tiles containing fewer compressed image rows than declared. A remote attacker can submit a crafted TIFF containing a short JPEG stream or prematurely terminated Group 4 fax stream to an application that processes images and exposes pixel-derived output to retrieve stale process memory copied into the undecoded image rows. The decoder copies the entire declared row range after libtiff reports success, even though part of the buffer remains unwritten.


6) Use of Uninitialized Variable (CVE-ID: CVE-2026-112898)

CWE-ID: CWE-457 - Use of Uninitialized Variable

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose 512 bytes of process stack memory through returned image pixels, potentially exposing memory addresses and the stack-protector canary.

The vulnerability exists due to use of an uninitialized stack variable in ImagingPaletteCacheUpdate() in src/libImaging/Palette.c when Image.quantize(palette=...) processes a palette image with zero entries. A remote attacker can supply an empty-palette image to an application that accepts user-controlled reference palettes and returns the quantized result to retrieve stack bytes copied into the colour cache and emitted as output pixel indices.

For RGB source images, both dithering modes are affected; grayscale L sources bypass the vulnerable cache.


7) Argument injection (CVE-ID: CVE-2026-112900)

CWE-ID: CWE-88 - Argument Injection or Modification

CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to inject Ghostscript command-line arguments and potentially execute arbitrary operating system commands.

The vulnerability exists due to improper neutralization of filename-derived command-line arguments in Pillow's PIL.EpsImagePlugin.Ghostscript() function when rendering EPS images with attacker-controlled filenames. A remote attacker can supply a filename beginning with - or -- to inject an option, or use a filename such as @arg to load additional arguments from a referenced file and execute arbitrary operating system commands if that file is also attacker-controlled.

The issue is reproducible with Pillow's default Ghostscript invocation, including when -dSAFER is enabled.


8) Inefficient regular expression complexity (CVE-ID: CVE-2026-112901)

CWE-ID: CWE-1333 - Inefficient Regular Expression Complexity

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption in applications that process images with Pillow.

The vulnerability exists due to inefficient regular expression complexity in the xbm_head expression used by XbmImageFile._open() when identifying image streams. A remote attacker can submit a crafted 512-byte file containing four #define lines with long whitespace runs and an _bits suffix without the required [] to trigger excessive backtracking, occupying a processor core for several minutes per file and potentially exhausting application workers.


9) Use of uninitialized resource (CVE-ID: CVE-2026-114501)

CWE-ID: CWE-908 - Use of Uninitialized Resource

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose stale heap contents, potentially including pixels from other users' images.

The vulnerability exists due to use of uninitialized heap memory in Pillow's Arrow export functionality when exporting an image whose aligned memory layout is incorrectly treated as tightly packed pixel data. A remote attacker can submit an image for Arrow export to obtain padding bytes and potentially bytes preceding the first image row, disclosing data left in heap memory.


10) Integer overflow (CVE-ID: CVE-2026-42308)

CWE-ID: CWE-190 - Integer overflow

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to integer overflow in font processing when handling fonts with excessively large glyph advance values. A remote attacker can supply a specially crafted font to cause a denial of service.


11) Double free (CVE-ID: CVE-2026-112893)

CWE-ID: CWE-415 - Double Free

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially cause a denial of service by crashing an application that renders text using an untrusted font.

The vulnerability exists due to an invalid or double free in Pillow's FreeType glyph-rendering cleanup in src/_imagingft.c when processing a glyph load failure while drawing text with a non-zero stroke width. A remote attacker can supply a malformed font that causes FT_Load_Glyph to fail, causing the cleanup path to call FT_Done_Glyph on an uninitialized or previously freed glyph pointer and potentially crash the application.


12) Improper Validation of Specified Quantity in Input (CVE-ID: CVE-2026-96636)

CWE-ID: CWE-1284 - Improper Validation of Specified Quantity in Input

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through memory exhaustion.

The vulnerability exists due to missing validation of frame dimensions in Pillow's MpoImageFile.seek() and DcxImageFile.seek() methods when selecting subsequent image frames. A remote attacker can trick a victim into opening a crafted MPO or DCX file with a small first frame and an oversized later frame and selecting and loading that later frame to bypass decompression-bomb checks and exhaust process memory.


13) Resource exhaustion (CVE-ID: CVE-2026-96637)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive memory allocation.

The vulnerability exists due to a missing decompression bomb check in Pillow's SpiderImagePlugin when seeking to another frame in a SPIDER stack file. A remote attacker can supply a crafted file containing oversized frame dimensions that are accepted during seek() and used for memory allocation during load() to exhaust memory and cause a denial of service.


14) Resource exhaustion (CVE-ID: CVE-2026-96638)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive memory consumption in Pillow.

The vulnerability exists due to uncontrolled memory allocation in Pillow's BmpRleDecoder.decode() function when processing delta escape and absolute mode instructions in BMP images. A remote attacker can trick a victim into opening a specially crafted BMP file whose decoding appends data beyond the expected image size to exhaust available memory and cause a denial of service.


15) Out-of-bounds write (CVE-ID: CVE-2026-96639)

CWE-ID: CWE-787 - Out-of-bounds write

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute commands, disclose process memory, or cause a denial of service.

The vulnerability exists due to out-of-bounds writes caused by reuse of incompatible native image storage in Pillow's multi-frame image loaders when decoding successive frames with different pixel modes. A remote attacker can submit a crafted multi-frame image that switches from a narrow mode to a wider mode while retaining the original buffer to corrupt native memory and crash the process, with the MPO/JPEG path also permitting out-of-bounds reads and command execution.


16) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-96640)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.

The vulnerability exists due to inefficient algorithmic complexity in Pillow's PDF page-tree traversal, which processes shared page-tree nodes repeatedly when appending an image to an existing PDF. A remote attacker can supply a malformed PDF to an application that uses Pillow to append an image to the file, causing excessive CPU consumption during page-tree traversal and rewriting.


17) Integer overflow (CVE-ID: CVE-2026-96641)

CWE-ID: CWE-190 - Integer overflow

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially cause a denial of service.

The vulnerability exists due to signed integer overflow in Pillow's native text-width calculation in src/_imaging.c when accumulating negative glyph advances without checking the lower integer bound. A remote attacker can induce a user to process a crafted PILfont bitmap font and text containing 65,537 repetitions of a glyph with an advance of -32768 to trigger undefined behavior, produce an incorrect width, and potentially cause a denial of service through subsequent resource consumption.


18) Infinite loop (CVE-ID: CVE-2026-96642)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by hanging the affected process in an infinite loop that consumes full CPU.

The vulnerability exists due to missing validation of negative tar header sizes in Pillow's TarIO.__init__ when scanning an archive for a requested member. A remote attacker can supply a crafted tar archive with the size field set to b" -00001000" (negative 512) and a header name that does not match the requested member to cause repeated backward seeks to the same header, resulting in an infinite CPU-consuming loop.

Exploitation requires an application to call PIL.TarIO.TarIO(path, member_name) directly; Image.open() does not use this helper.


19) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-96643)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption during PNG EXIF parsing.

The vulnerability exists due to inefficient algorithmic complexity in Pillow's Exif.load() function in src/PIL/Image.py when processing PNG eXIf chunks containing repeated six-byte EXIF markers. A remote attacker can supply a crafted PNG containing repeated b"Exifx00x00" markers to cause quadratic-time processing, as each iteration of the marker-stripping loop copies the remaining data, resulting in excessive CPU consumption and processing delays.


20) Heap-based buffer overflow (CVE-ID: CVE-2026-96778)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service and potentially execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in ImagingJpegEncode() in src/libImaging/JpegEncode.c when writing a JPEG comment after image metadata exactly fills the encoder output buffer. A remote attacker can supply a crafted JPEG or PNG containing an ICC profile and a comment to an application that re-encodes the image as JPEG while preserving the profile, causing the unchecked comment write to wrap the remaining-space counter and overwrite heap memory with comment bytes and compressed image data to terminate the process or potentially execute arbitrary code.

The demonstrated code-execution chains required knowledge of library base addresses.


21) Resource exhaustion (CVE-ID: CVE-2026-112400)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting memory.

The vulnerability exists due to improper state handling in Pillow's GIF frame-seeking code when it stores enlarged dimensions before validation and retains them after they are rejected. A remote attacker can upload a crafted GIF to exhaust memory if the application catches the frame-seek error and continues using the same image object for decoding or transformations that allocate memory based on the rejected dimensions.


22) Uncontrolled Recursion (CVE-ID: CVE-2026-112391)

CWE-ID: CWE-674 - Uncontrolled Recursion

CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing a PDF append operation.

The vulnerability exists due to uncontrolled recursion caused by an ineffective recursion-depth guard in Pillow's PdfParser.get_value() in src/PIL/PdfParser.py when parsing deeply nested PDF objects during append-mode saving. A remote attacker can trick a victim into appending an image page to a specially crafted PDF using Image.save(..., format="PDF", append=True) to trigger an uncaught RecursionError and cause a denial of service.


23) NULL pointer dereference (CVE-ID: CVE-2026-112392)

CWE-ID: CWE-476 - NULL Pointer Dereference

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing the Python process using Pillow.

The vulnerability exists due to a null pointer dereference in ImagingExpand() in src/libImaging/Filter.c when padding an image with zero width or height before applying a median, minimum, maximum or rank filter. A remote attacker can supply crop coordinates with x0 == x1 or y0 == y1, or upload a crafted multi-page TIFF whose second image directory declares ImageLength = 0, to crash an application that processes the resulting empty image with one of these filters.


24) Heap-based buffer overflow (CVE-ID: CVE-2026-112393)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service and potentially execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in Pillow's _tiffWriteProc function in src/libImaging/TiffDecode.c when saving a TIFF image through libtiff to a destination without a usable file descriptor, such as io.BytesIO. A remote attacker can supply a crafted single-band TIFF with an attacker-controlled out-of-line tag value to a service that opens and re-saves the image to trigger an undersized allocation and overwrite adjacent heap memory, causing a process crash or potentially executing arbitrary code.

The reported code-execution chain additionally requires addresses disclosed by a separate vulnerability.


25) Buffer over-read (CVE-ID: CVE-2026-112394)

CWE-ID: CWE-126 - Buffer over-read

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose limited heap memory contents and potentially cause a denial of service.

The vulnerability exists due to a buffer over-read in Pillow's ImagingRawDecode function and P;2L and P;4L unpackers when decoding raw image data through Image.frombytes() or Image.frombuffer(). The decoder calculates line sizes as packed pixels rather than separately byte-padded bit planes. A remote attacker can supply crafted image dimensions and an undersized buffer to cause reads of up to three bytes beyond the buffer, exposing bits of adjacent heap memory through decoded pixel values or potentially crashing the process.

The PCX decoder is not affected because it repacks rows into a format that avoids these over-reads.


26) Heap-based buffer overflow (CVE-ID: CVE-2026-112395)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service and potentially disclose adjacent heap memory through decoded pixel data.

The vulnerability exists due to a heap buffer over-read in Pillow's tiled TIFF decoder when the copy4 row unpacker reads from a tile buffer that _decodeTile has not verified is large enough. A remote attacker can submit a crafted tiled TIFF to an application that decodes it with Pillow to crash the process or potentially expose adjacent heap memory.


27) Use-after-free (CVE-ID: CVE-2026-112396)

CWE-ID: CWE-416 - Use After Free

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing an application that encodes untrusted images as TIFF in memory.

The vulnerability exists due to a heap use-after-free in Pillow's libtiff encoder when an encoding failure frees the output buffer without closing the TIFF handle, allowing cleanup to write into freed memory. A remote attacker can cause an application to re-encode attacker-influenced images with a rejected tag, such as the floating-point Predictor value 3 on integer sample data, to cause a denial of service.


28) Out-of-bounds write (CVE-ID: CVE-2026-112397)

CWE-ID: CWE-787 - Out-of-bounds write

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service and potentially corrupt memory.

The vulnerability exists due to an out-of-bounds write in Pillow's native _imagingmorph component when performing morphology operations on a zero-width image. A remote attacker can supply a crafted PPM or PGM file declaring a width of 0 that, when processed by ImageMorph.MorphOp.apply(), causes the unchecked assignment outrow[0] = outrow[width - 1] = 0; to write outside the row buffer and crash the process.


29) Heap-based buffer overflow (CVE-ID: CVE-2026-112398)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary code with the privileges of the image-processing process.

The vulnerability exists due to a heap-based buffer overflow in Pillow's FlashPix JPEG tile decoder when a decoded scanline exceeds the allocated output buffer. A remote attacker can submit a crafted FlashPix file to a service that automatically decodes uploaded images using Pillow with olefile installed to execute arbitrary code.


30) Uncontrolled Memory Allocation (CVE-ID: CVE-2026-112399)

CWE-ID: CWE-789 - Uncontrolled Memory Allocation

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive memory allocation and possible process termination.

The vulnerability exists due to memory allocation using an excessive, file-controlled size in Pillow's PngImageFile._seek() function when opening an APNG whose first frame requests background disposal. A remote attacker can supply a crafted APNG with oversized IHDR dimensions and a first fcTL chunk specifying OP_BACKGROUND or OP_PREVIOUS to trigger allocation and zero-filling of the full canvas before the decompression-bomb check runs, exhausting memory and potentially terminating the application process.


31) Infinite loop (CVE-ID: CVE-2026-112390)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by indefinitely occupying an image-processing worker at 100% CPU utilization.

The vulnerability exists due to an infinite loop in Pillow's inherited TiffImageFile.n_frames property when counting frames in a Microsoft Image Composer (MIC) file containing an embedded TIFF with three or more chained image directories. A remote attacker can supply a crafted MIC file to an application that evaluates im.n_frames, directly or through saving with save_all=True, to trigger non-terminating frame enumeration because MicImageFile.tell() returns a constant container stream index rather than the advancing TIFF frame index.

Exploitation requires the optional olefile package to be installed.


32) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-112401)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption.

The vulnerability exists due to quadratic copying in Pillow's GIF parser when it repeatedly concatenates immutable byte strings while assembling comment sub-blocks and extensions. A remote attacker can submit a crafted GIF to a service that opens it with Pillow to tie up a worker before pixel decoding begins.


33) Double free (CVE-ID: CVE-2026-112402)

CWE-ID: CWE-415 - Double Free

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing an image-processing worker.

The vulnerability exists due to a double free in Pillow's ImagingScaleAffine() function when a lookup-table allocation fails during Image.transform(). The error handler frees the caller-owned output image, which is freed again during Python object cleanup. A remote attacker can supply an oversized output width to an application exposing Transform.EXTENT or a pure scale/translate Transform.AFFINE operation with NEAREST resampling to trigger heap corruption and crash the worker.


34) Heap-based buffer overflow (CVE-ID: CVE-2026-112403)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in Pillow's ImagingJpegDecode() when decoding a lossless SOF3 JPEG after draft() requests scaled output. A remote attacker can supply a specially crafted image to an application that requests scaling through draft() or thumbnail() to cause full-width scanlines to overwrite a heap buffer allocated for scaled-width rows, corrupting memory and potentially crashing the application.

Exploitation requires the linked JPEG library to support lossless decoding.


35) Out-of-bounds read (CVE-ID: CVE-2026-112404)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose process heap memory, including pointer values, and cause a denial of service.

The vulnerability exists due to an out-of-bounds read in the _decodeTile() and _decodeAsRGBA() functions in Pillow's src/libImaging/TiffDecode.c when decoding malformed compressed TIFF images. These functions do not verify that the unpacker's input row fits within the row produced by libtiff when Pillow and libtiff interpret image tags differently. A remote attacker can submit a specially crafted TIFF image to an application that loads it to expose adjacent heap bytes through returned image pixels or crash the application process.

The tile decode buffer is reused across tiles, so increasing the tile count does not increase the amount of distinct heap memory exposed.


36) NULL pointer dereference (CVE-ID: CVE-2026-112405)

CWE-ID: CWE-476 - NULL Pointer Dereference

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing a process using Pillow.

The vulnerability exists due to a null pointer dereference in Pillow's native ImagingMerge routine when merging image bands without validating the mode of band 0. A remote attacker can supply a crafted file that is opened and loaded through the IPTC plugin to place an I- or F-mode image at band 0, trigger a dereference of its missing image8 plane, and crash the process.


37) Infinite loop (CVE-ID: CVE-2026-112406)

CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by hanging a PDF append worker indefinitely.

The vulnerability exists due to missing cycle detection in Pillow's PdfParser.rewrite_pages() when traversing page-tree parent references during a PDF append operation. A remote attacker can supply a specially crafted PDF to an application that appends pages to it to trigger an infinite loop that occupies one CPU core.


38) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-112891)

CWE-ID: CWE-407 - Inefficient Algorithmic Complexity

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through excessive CPU consumption.

The vulnerability exists due to inefficient algorithmic complexity in Pillow's _get_global_header() function when saving GIF images containing long comments. A remote attacker can submit a crafted image with a long comment to a service that automatically resaves uploaded images as GIFs to trigger repeated copying of comment data with quadratic processing cost and cause a denial of service.


39) Improper handling of highly compressed data (CVE-ID: CVE-2026-112892)

CWE-ID: CWE-409 - Improper Handling of Highly Compressed Data (Data Amplification)

CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service through memory exhaustion.

The vulnerability exists due to uncontrolled expansion of run-length encoded data in Pillow's MSP RLE decoder when loading image pixels. A remote attacker can supply a small crafted MSP image that expands into an unbounded io.BytesIO buffer without a limit tied to the declared image size to exhaust application memory and cause a denial of service.


Remediation

Install update from vendor's website.