Amazon Linux 2023:php8.1、php8.1-bcmath、php8.1-cli (ALAS2023-2025-845)

high Nessus 插件 ID 216823

简介

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

描述

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

上游公告对此问题的描述如下:

在 PHP 的过滤器处理系统中存在一个与内存相关的漏洞,尤其是在使用 convert.quoted-printable-decode 过滤器处理输入时,此漏洞可导致分段错误。通过特定的输入数据序列可触发此漏洞,进而导致 PHP 崩溃。攻击者可利用此漏洞来从堆中提取单字节数据,或造成拒绝服务。(CVE-2024-11233)

上游公告对此问题的描述如下:

在流上下文中配置代理可能会允许在 URI 中进行 CRLF 注入,导致 HTTP 请求走私攻击。(CVE-2024-11234)

错误解析多部分表单数据

注意:已在 8.3.12、8.2.24NOTE 中修复:https://github.com/php/php-src/security/advisories/GHSA-9pqp-7h25-4f32NOTE: https://github.com/php/php-src/commit/19b49258d0c5a61398d395d8afde1123e8d161e0 (PHP-8.2.24) (CVE-2024-8925)

由于环境变量冲突,cgi.force_redirect 配置可绕过

注意:已在 8.3.12、8.2.24NOTE 中修复:https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwpNOTE: https://github.com/php/php-src/commit/48808d98f4fc2a05193cdcc1aedd6c66816450f1 (PHP-8.2.24) (CVE-2024-8927)

php:错误解析多部分表单数据 (CVE-2024-8928)

上游公告对此问题的描述如下:

通过连接至虚假 MySQL 服务器或篡改网络数据包并发起 SQL 查询,可在解析 MySQL 字段数据包时滥用函数静态 enum_func_status php_mysqlnd_rset_field_read,以包含从当前读取的缓冲区游标位置开始的其余堆内容。

使用在请求之间以及两个不同 SQL 查询请求之间保持活动状态的 PHP-FPM,由于之前用于存储从 MySQL 接收到的数据的缓冲区未清空,并且 malloc 分配的内存区域非常接近前一个缓冲区,因此可以从 PHP-FPM 工作线程中提取之前的 MySQL 请求的响应内容。(CVE-2024-8929)

上游公告对此问题的描述如下:

32 位系统中 ldap_escape 不受控制的字符串输入长度可造成整数溢出问题,进而导致越界写入。(CVE-2024-8932)

可能会更改来自子项的日志

注意:已在 8.3.12、8.2.24NOTE 中修复:https://github.com/php/php-src/security/advisories/GHSA-865w-9rf3-2wh5NOTE: https://github.com/php/php-src/commit/1f8e16172c7961045c2b0f34ba7613e3f21cdee8 (PHP-8.2.24) (CVE-2024-9026)

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

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

解决方案

运行“dnf update php8.1 --releasever 2023.6.20250218”以更新系统。

另见

https://alas.aws.amazon.com/AL2023/ALAS-2025-845.html

https://alas.aws.amazon.com/cve/html/CVE-2024-11233.html

https://alas.aws.amazon.com/cve/html/CVE-2024-11234.html

https://alas.aws.amazon.com/cve/html/CVE-2024-8925.html

https://alas.aws.amazon.com/cve/html/CVE-2024-8927.html

https://alas.aws.amazon.com/cve/html/CVE-2024-8928.html

https://alas.aws.amazon.com/cve/html/CVE-2024-8929.html

https://alas.aws.amazon.com/cve/html/CVE-2024-8932.html

https://alas.aws.amazon.com/cve/html/CVE-2024-9026.html

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

插件详情

严重性: High

ID: 216823

文件名: al2023_ALAS2023-2025-845.nasl

版本: 1.1

类型: local

代理: unix

发布时间: 2025/2/26

最近更新时间: 2025/2/26

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

风险信息

VPR

风险因素: Medium

分数: 6.7

CVSS v2

风险因素: High

基本分数: 8.5

时间分数: 6.7

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

CVSS 分数来源: CVE-2024-11233

CVSS v3

风险因素: High

基本分数: 8.2

时间分数: 7.4

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

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

漏洞信息

CPE: p-cpe:/a:amazon:linux:php8.1-gmp-debuginfo, p-cpe:/a:amazon:linux:php8.1-dba, p-cpe:/a:amazon:linux:php8.1-ldap, p-cpe:/a:amazon:linux:php8.1-cli-debuginfo, p-cpe:/a:amazon:linux:php8.1-dbg-debuginfo, p-cpe:/a:amazon:linux:php8.1-common, p-cpe:/a:amazon:linux:php8.1-tidy-debuginfo, p-cpe:/a:amazon:linux:php8.1-opcache, p-cpe:/a:amazon:linux:php8.1-tidy, p-cpe:/a:amazon:linux:php8.1-odbc-debuginfo, p-cpe:/a:amazon:linux:php8.1-zip, p-cpe:/a:amazon:linux:php8.1-bcmath, p-cpe:/a:amazon:linux:php8.1-soap, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:php8.1-enchant, p-cpe:/a:amazon:linux:php8.1-devel, p-cpe:/a:amazon:linux:php8.1-odbc, p-cpe:/a:amazon:linux:php8.1-process, p-cpe:/a:amazon:linux:php8.1-pgsql-debuginfo, p-cpe:/a:amazon:linux:php8.1-gd, p-cpe:/a:amazon:linux:php8.1-dba-debuginfo, p-cpe:/a:amazon:linux:php8.1-fpm-debuginfo, p-cpe:/a:amazon:linux:php8.1-cli, p-cpe:/a:amazon:linux:php8.1-gd-debuginfo, p-cpe:/a:amazon:linux:php8.1-pspell-debuginfo, p-cpe:/a:amazon:linux:php8.1-debugsource, p-cpe:/a:amazon:linux:php8.1-debuginfo, p-cpe:/a:amazon:linux:php8.1-pdo-debuginfo, p-cpe:/a:amazon:linux:php8.1-enchant-debuginfo, p-cpe:/a:amazon:linux:php8.1-bcmath-debuginfo, p-cpe:/a:amazon:linux:php8.1-intl, p-cpe:/a:amazon:linux:php8.1-ldap-debuginfo, p-cpe:/a:amazon:linux:php8.1-snmp, p-cpe:/a:amazon:linux:php8.1-mysqlnd-debuginfo, p-cpe:/a:amazon:linux:php8.1-zip-debuginfo, p-cpe:/a:amazon:linux:php8.1-process-debuginfo, p-cpe:/a:amazon:linux:php8.1-soap-debuginfo, p-cpe:/a:amazon:linux:php8.1-gmp, p-cpe:/a:amazon:linux:php8.1-intl-debuginfo, p-cpe:/a:amazon:linux:php8.1-dbg, p-cpe:/a:amazon:linux:php8.1-mbstring, p-cpe:/a:amazon:linux:php8.1-pdo, p-cpe:/a:amazon:linux:php8.1-embedded, p-cpe:/a:amazon:linux:php8.1-opcache-debuginfo, p-cpe:/a:amazon:linux:php8.1-mysqlnd, p-cpe:/a:amazon:linux:php8.1-pspell, p-cpe:/a:amazon:linux:php8.1-xml-debuginfo, p-cpe:/a:amazon:linux:php8.1-ffi-debuginfo, p-cpe:/a:amazon:linux:php8.1, p-cpe:/a:amazon:linux:php8.1-snmp-debuginfo, p-cpe:/a:amazon:linux:php8.1-embedded-debuginfo, p-cpe:/a:amazon:linux:php8.1-common-debuginfo, p-cpe:/a:amazon:linux:php8.1-fpm, p-cpe:/a:amazon:linux:php8.1-xml, p-cpe:/a:amazon:linux:php8.1-mbstring-debuginfo, p-cpe:/a:amazon:linux:php8.1-pgsql, p-cpe:/a:amazon:linux:php8.1-ffi

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

可利用: true

易利用性: No known exploits are available

补丁发布日期: 2025/2/12

漏洞发布日期: 2024/9/25

参考资料信息

CVE: CVE-2024-11233, CVE-2024-11234, CVE-2024-8925, CVE-2024-8927, CVE-2024-8928, CVE-2024-8929, CVE-2024-8932, CVE-2024-9026