Amazon Linux 2 (EOS) Security Advisory: ALAS2-2026-4158
Advisory Released Date: 2026-12-04
Advisory Updated Date: 2026-12-04
FAQs regarding Amazon Linux ALAS/CVE Severity
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0. (CVE-2026-112394)
A flaw was found in Pillow. A remote attacker who can submit large image transformation operations under memory pressure can trigger improper error handling, leading to a double-free vulnerability (releasing the same memory block twice). This issue can result in an application crash, causing a Denial of Service (DoS), and may potentially lead to memory corruption. (CVE-2026-112402)
Pillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0. (CVE-2026-96637)
Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0. (CVE-2026-96641)
Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0. (CVE-2026-96642)
Affected Packages:
python-pillow
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update python-pillow or yum update --advisory ALAS2-2026-4158 to update your system.
aarch64:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.23.aarch64
i686:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.23.i686
src:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.23.src
x86_64:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.23.x86_64