Amazon Linux 2 : tomcat (ALAS-2025-2812)

critical Nessus 插件 ID 233710

简介

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

描述

远程主机上安装的 tomcat 版本低于 7.0.76-10。因此,该软件受到 ALAS2-2025-2812 公告中提及的多个漏洞影响。

在使用 NTFS 文件系统期间从网络位置提供资源时,Apache Tomcat 版本 10.0.0-M1 到 10.0.0-M9、9.0.0.M1 到 9.0.39、8.5.0 到 8.5.59 和 7.0.0 到 7.0.106 容易受到某些配置中的 JSP 源代码的影响。根本原因在于 JRE API File.getCanonicalPath() 的非预期行为,在某些情况下,此行为是由 Windows API (FindFirstFileW) 的不一致行为造成的。(CVE-2021-24122)

Apache Tomcat 中的清理不完全漏洞。当回收 Apache Tomcat 从 11.0.0-M1 到 11.0.0-M11、从 10.1.0-M1 到 10.1.13、从 9.0.0-M1 到 9.0.80 以及从 8.5.0 到 8.5.93 的各种内部对象时,错误可能会导致 Tomcat 跳过回收过程的某些部分,从而导致信息从当前请求/响应泄漏到下个部分。建议用户升级到 11.0.0-M12 以上、10.1.14 以上、9.0.81 以上或 8.5.94 以上版本,即可修复该问题。
(CVE-2023-42795)

路径等同:“file.Name”(内部点)导致远程代码执行和/或信息泄露和/或通过在 Apache Tomcat 中启用写入功能的默认 Servlet 添加到上传文件的恶意内容。

此问题影响以下 Apache Tomcat 版本:11.0.0-M1 至 11.0.2、10.1.0-M1 至 10.1.34、9.0.0.M1 至 9.0.98。

如果以下所有项均为真,则恶意用户能够查看安全敏感文件和/或将内容注入到这些文件中:- 默认 servlet 启用写入(默认禁用)- 支持部分 PUT(默认启用)-安全敏感文件上传的目标 URL 是公开上传的目标 URL 的子目录- 攻击者知道要上传的安全敏感文件的名称- 安全敏感文件也是通过部分 PUT 上传

如果以下所有项均为真,则恶意用户能够远程执行代码:- 默认 servlet 启用写入(默认禁用)- 支持部分 PUT(默认启用)- 应用程序使用 Tomcat 的基于文件的会话,该会话具有持久性默认存储位置- 应用程序包含可在反序列化攻击中被利用的库

建议用户升级到已修复此问题的 11.0.3、10.1.35 或 9.0.98 版本。

如需进一步了解所有版本的更新原因和修补程序链接,请参阅:[1] https://tomcat.apache.org/security-11.html[2] https://tomcat.apache.org/security-10.html[3] https://tomcat.apache.org/security-9.html (CVE-2025-24813)

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

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

解决方案

运行 yum update tomcat 以更新系统。

另见

https://alas.aws.amazon.com/AL2/ALAS-2025-2812.html

https://alas.aws.amazon.com/cve/html/CVE-2021-24122.html

https://alas.aws.amazon.com/cve/html/CVE-2023-42795.html

https://alas.aws.amazon.com/cve/html/CVE-2025-24813.html

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

插件详情

严重性: Critical

ID: 233710

文件名: al2_ALAS-2025-2812.nasl

版本: 1.1

类型: local

代理: unix

发布时间: 2025/4/1

最近更新时间: 2025/4/1

支持的传感器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

风险信息

VPR

风险因素: Critical

分数: 9.5

CVSS v2

风险因素: Medium

基本分数: 4.3

时间分数: 3.6

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

CVSS 分数来源: CVE-2021-24122

CVSS v3

风险因素: Critical

基本分数: 9.8

时间分数: 9.1

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

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

CVSS 分数来源: CVE-2025-24813

漏洞信息

CPE: p-cpe:/a:amazon:linux:tomcat-javadoc, p-cpe:/a:amazon:linux:tomcat-lib, p-cpe:/a:amazon:linux:tomcat-webapps, p-cpe:/a:amazon:linux:tomcat-servlet-3.0-api, p-cpe:/a:amazon:linux:tomcat-jsp-2.2-api, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:tomcat-jsvc, p-cpe:/a:amazon:linux:tomcat-admin-webapps, p-cpe:/a:amazon:linux:tomcat-docs-webapp, p-cpe:/a:amazon:linux:tomcat-el-2.2-api, p-cpe:/a:amazon:linux:tomcat

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

可利用: true

易利用性: No known exploits are available

补丁发布日期: 2025/3/26

漏洞发布日期: 2020/11/17

CISA 已知可遭利用的漏洞到期日期: 2025/4/22

参考资料信息

CVE: CVE-2021-24122, CVE-2023-42795, CVE-2025-24813

IAVA: 2020-A-0570-S, 2023-A-0534-S, 2025-A-0156