Amazon Linux 2023:python3-pillow、python3-pillow-devel、python3-pillow-tk (ALAS2023-2026-2013)

high Nessus 插件 ID 332016

简介

远程 Amazon Linux 2023 主机缺少安全更新。

描述

因此,该软件受到 ALAS2023-2026-2013 公告中提及的多个漏洞影响。

Pillow 是一个 Python 图像库。在之前 12.3.0,当 Pillow 通过 mmap 原始编解码器路径从文件名加载未压缩的 McIdas AREA 图像时,攻击者控制的标头文字可设置小于自然行宽的行步幅,从而导致 Image.tobytes()、getpixel、convert 或 save 等像素访问超出映射区域进行读取,并泄露相邻进程内存或错误。此问题已在 12.3.0 版本中修复。(CVE-2026-54058)

Pillow 是一个 Python 图像库。在之前 12.3.0,Pillow 的公共排名过滤器 API 在给定非常大的奇数过滤器大小时可触发本地堆越界写入,因为 ImageFilter.RankFilter.filter() 在 rank-filter 大小验证之前调用 image.expand(size // 2, size // 2),并且 ImagingExpand() 使用未经检查的有符号 int 算术计算输出尺寸。此问题已在 12.3.0 版本中修复。
(CVE-2026-59197)

Pillow 是一个 Python 图像库。From 5.2.0 until 12.3.0, 当使用 TGA RLE 压缩保存模式 1 图像时,Pillow 的 TGA RLE 编码器会读取其打包的行缓冲区,从而允许将相邻进程堆字节复制到生成的 TGA 文件中。此问题已在 12.3.0 版本中修复。(CVE-2026-59198)

Pillow 是一个 Python 图像库。在版本之前 12.3.0,当 Image.paste()、Image.crop() 或 Image.alpha_composite() 中给定的坐标接近有符号的 32 位整数限制时,Pillow 公共图像坐标 API 可触发本地堆越界写入。此问题已在 12.3.0 版本中修复。
(CVE-2026-59199)

Pillow 是一个 Python 图像库。From 5.1.0 until 12.3.0, PIL/PdfParser.py 中的 PdfParser.PdfStream.decode() 会调用 zlib.decompress(),并将 bufsize 设置为 PDF 流长度字段,而不限制解压缩的输出大小,从而允许构建的 FlateDecode PDF 流耗尽小文件中的内存。此问题已在 12.3.0 版本中修复。(CVE-2026-59200)

Pillow 是一个 Python 图像库。从 8.2.0 到 12.2.0, src/libImaging/Jpeg2KDecode.c 在图像中的 JPEG2000 每个图块上累积total_component_width,而不是按图块重新计算,从而允许特制的图块文件 JPEG2000 强制大幅提高暂时性内存使用率,并在解码期间触发内存不足失败。此问题已在 12.3.0 版本中修复。(CVE-2026-59204)

Pillow 是一个 Python 图像库。在之前 12.3.0版本之前,当调用方提供的输出图像模式与转换声明的输出模式不匹配时,Pillow 的 ImageCms.ImageCmsTransform.apply(im, imOut) API 可触发受控的本机堆损坏。此问题已在 12.3.0 版本中修复。(CVE-2026-59205)

Tenable 已直接从测试产品的安全公告中提取上述描述块。

请注意,Nessus 尚未测试这些问题,而是只依据应用程序自我报告的版本号进行判断。

解决方案

运行“dnf update python-pillow --releasever 2023.12.20260803”或“/或”dnf update --advisory ALAS2023-2026-2013 --releasever 2023.12.20260803“以更新系统。

另见

https://alas.aws.amazon.com//AL2023/ALAS2023-2026-2013.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2026-54058.html

https://explore.alas.aws.amazon.com/CVE-2026-59197.html

https://explore.alas.aws.amazon.com/CVE-2026-59198.html

https://explore.alas.aws.amazon.com/CVE-2026-59199.html

https://explore.alas.aws.amazon.com/CVE-2026-59200.html

https://explore.alas.aws.amazon.com/CVE-2026-59204.html

https://explore.alas.aws.amazon.com/CVE-2026-59205.html

插件详情

严重性: High

ID: 332016

文件名: al2023_ALAS2023-2026-2013.nasl

版本: 1.1

类型: Local

代理: unix

发布时间: 2026/8/4

最近更新时间: 2026/8/4

支持的传感器: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Tenable Cloud Security, Tenable Self-Hosted Container Security, Nessus

风险信息

VPR

风险因素: Medium

分数: 4.3

百分位: 53.61

CVSS v2

风险因素: High

基本分数: 7.8

时间分数: 6.1

矢量: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS 分数来源: CVE-2026-59198

CVSS v3

风险因素: High

基本分数: 7.5

时间分数: 6.7

矢量: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

时间矢量: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

风险因素: High

Base Score: 8.7

Threat Score: 7.7

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 分数来源: CVE-2026-59204

漏洞信息

CPE: cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:python-pillow-debuginfo, p-cpe:/a:amazon:linux:python-pillow-debugsource, p-cpe:/a:amazon:linux:python3-pillow-debuginfo, p-cpe:/a:amazon:linux:python3-pillow-devel, p-cpe:/a:amazon:linux:python3-pillow-tk-debuginfo, p-cpe:/a:amazon:linux:python3-pillow-tk, p-cpe:/a:amazon:linux:python3-pillow

必需的 KB 项: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

可利用: true

易利用性: Exploits are available

补丁发布日期: 2026/8/4

漏洞发布日期: 2026/7/14

参考资料信息

CVE: CVE-2026-54058, CVE-2026-59197, CVE-2026-59198, CVE-2026-59199, CVE-2026-59200, CVE-2026-59204, CVE-2026-59205