ADVISORIES

Amazon Linux Security Advisory

ALAS2-2026-3839

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

Details

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

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

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

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

Affected packages

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

References