Amazon Linux 2 Security Advisory: ALAS-2024-2508
Advisory Release Date: 2024-03-27 21:32 Pacific
Advisory Updated Date: 2024-03-27 21:32 Pacific
An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument. (CVE-2023-44271)
Affected versions of this package are vulnerable to Denial of Service (DoS) when using arbitrary strings as text input and the number of characters passed into PIL.ImageFont.ImageFont.getmask() is over a certain limit. This can lead to a system crash.
Affected versions of this package are vulnerable to Denial of Service (DoS) if the size of individual glyphs extends beyond the bitmap image, when using PIL.ImageFont.ImageFont function. Exploiting this vulnerability could lead to a system crash.
Affected versions of this package are vulnerable to Command Injection in filenames that contain single quotes via load_djpeg.
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 to update your system.
aarch64:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.12.aarch64
i686:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.12.i686
src:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.12.src
x86_64:
python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64
python-pillow-devel-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64
python-pillow-doc-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64
python-pillow-sane-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64
python-pillow-tk-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64
python-pillow-debuginfo-2.0.0-23.gitd1c6db8.amzn2.0.12.x86_64