Skip to content
OpenAdvisories
High ALAS2023-2026-3441 3 CVEs

Important: python-pillow security update (Amazon Linux 2023)

Published Nov 12, 2026 · Updated Nov 12, 2026

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-96640: Pillow is a Python imaging library. From 5.1.0 until 13.0.0, PdfParser.linearize_page_tree() in src/PIL/PdfParser.py treats a PDF /Pages graph as a tree without tracking duplicate indirect references. When Image.save(..., format="PDF", append=True) processes an attacker-controlled existing PDF whose /Kids arrays repeatedly reference the same child /Pages node, Pillow expands the shared subtree as distinct pages. A compact malformed PDF can therefore create exponentially many page references and consume disproportionate CPU before the append completes. This issue is fixed in version 13.0.0. CVE-2026-112902: A flaw was found in Pillow. When saving an image in the TIFF format, Pillow incorrectly forwards unknown metadata tags to the underlying image processing library. A remote attacker could exploit this flaw by providing a specially crafted image containing malicious metadata to an application that processes and re-saves it. Successful exploitation allows the attacker to read out-of-bounds memory, leading to the disclosure of sensitive process memory or causing the application to crash, resulting in a Denial of Service (DoS). CVE-2026-112401: A flaw was found in Pillow. When parsing GIF images with numerous comment blocks, the library repeatedly copies data in an inefficient manner. A remote attacker can exploit this vulnerability by submitting a specially crafted GIF image to an application that processes images using Pillow, causing excessive CPU consumption and leading to a Denial of Service (DoS).

Fixed packages 7

ReleasePackageFixed in
Amazon Linux · 2023 python-pillow-debuginfo 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python-pillow-debugsource 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python3-pillow 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python3-pillow-debuginfo 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python3-pillow-devel 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python3-pillow-tk 0:9.4.0-2.amzn2023.0.13
Amazon Linux · 2023 python3-pillow-tk-debuginfo 0:9.4.0-2.amzn2023.0.13

Vulnerabilities 3

  • High 8.3

    Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags

    Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata throu…

  • High 8.2

    Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion

    Pillow is a Python imaging library. From 5.1.0 until 13.0.0, PdfParser.linearize_page_tree() in src/PIL/PdfParser.py treats a PDF /Pages graph as a tree without tracking duplicate indirect references. When Image.save(..., format="PDF", append=True) processes …

  • Medium 6.9

    Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()

    Pillow is a Python imaging library. From 5.4.0 until 13.0.0, Pillow performs quadratic copying while parsing GIF comments. GifImageFile._seek() repeatedly appends immutable bytes for comment sub-blocks and multiple comment extensions, and frame zero is parsed…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-112401.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-112902.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-96640.html