ADVISORIES

Amazon Linux Security Advisory

ALAS2-2026-3816

Amazon Linux 2 2017.12 - ALAS2-2026-3816: important priority package update for python-pillow

Details

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-55380: 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.

CVE-2026-55379: 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. This issue is fixed in version 12.3.0.

CVE-2026-54060: 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.

CVE-2026-54059: 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.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2python-pillow
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)
Amazon Linux:2python-pillow-debuginfo
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)
Amazon Linux:2python-pillow-devel
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)
Amazon Linux:2python-pillow-doc
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)
Amazon Linux:2python-pillow-sane
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)
Amazon Linux:2python-pillow-tk
All versions before 2.0.0-23.gitd1c6db8.amzn2.0.19 (fixed in 2.0.0-23.gitd1c6db8.amzn2.0.19)

References