SB2026112241 - Anolis OS update for python-pillow



SB2026112241 - Anolis OS update for python-pillow

Published: November 22, 2026

Security Bulletin ID SB2026112241
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 10
Exploitation vector Remote access
Highest impact Denial of service

Breakdown by Severity

Medium 90% Low 10%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 10 vulnerabilities.


1) 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.


2) 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.


3) 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.


4) 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.


5) 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.


6) 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.


7) 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.


8) 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.


9) 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.


10) 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.


Remediation

Install update from vendor's website.