Amazon Linux 2023:php8.2、php8.2-bcmath、php8.2-cli (ALAS2023-2026-3161)

medium Nessus 插件 ID 365295

简介

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

描述

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

mysqlnd 线路协议解析器在检查数据包是否仍为其保留足够的字节之前,先从服务器数据包读取字段。恶意或已被破坏的 MySQL 服务器可发送截断数据包,并使客户端读取超过数据包缓冲区的末尾,这种行为属于未定义的行为,可导致进程崩溃。
(CVE-2025-1218)

SOAP HTTP 客户端通过依赖有符号的整数溢出检查来保护其响应缓冲区增长,该检查是未定义的行为,不保证会触发。当检查被优化掉时,恶意 SOAP 服务器可使客户端分配远小于随后写入的数据的缓冲区,从而产生堆缓冲区溢出。(CVE-2025-14181)

phar_tar_number() 将 TAR 标头的八进制大小字段解析为不进行溢出检查的uint32_t。该字段有 11 位八进制数字宽,最多可保存 0x1FFFFFFFF 个值,因此大于 0xFFFFFFFF 的大小会静默封装。然后,解析器会跳过错误数量的数据块,并将攻击者控制的文件内容解释为下一个 TAR 标头,从而允许构建的存档注入 PharData 报告并提取的条目,就像这些条目是真实的一样。(CVE-2026-6103)

SOAP XML 解析器中的 cleanup_xml_node() 在每个 XML 嵌套级别递归一次,没有深度限制。未经认证的攻击者可将包含数万个嵌套元素的 SOAP 请求发布到任何 SoapServer 端点、耗尽堆栈和使进程崩溃。SOAP 值解码器和 WSDL 节点搜索帮助程序中也存在相同的不受限制的递归。(CVE-2026-91765)

当 http:// 流封装程序遵循重定向时,即使重定向目标是不同主机、不同端口或从 HTTPS 降级到 HTTP,它也会原封不动地转发用户提供的授权、Cookie 和代理授权标头。因此,能够引导重定向的服务器会收到仅用于原始源的凭据。这是 libcurl 在 ()CVE-2018-1000007 中7.58.0修复的同一类问题。(CVE-2026-91766)

当 TLS 服务器证书呈现文字字符加起来比被验证的主机名长的通配符名称时,ext/openssl/xp_ssl.c 中的 php_openssl_matches_wildcard_name() 会下溢传递给 memchr() 的长度参数。显示此类证书的恶意服务器会使 PHP 客户端在超过堆分配末尾时读取最多 SIZE_MAX 个字节。由于默认已启用verify_peer_name,因此可从任何默认客户端流访问此路径。(CVE-2026-91767)

FastCGI 客户端访问检查的 IPv6 分支仅比较 16 字节 IPv6 地址的前 12 字节,因此匹配 /96 前缀而不是精确地址的 listen.allowed_clients。能够搜寻与允许的地址共享前 96 位的地址的攻击者,通过检查并到达 FastCGI 端点。(CVE-2026-91768)

PHP 的 OpenSSL 流对等验证首先检查证书的 subjectAltName 条目,并且每当无匹配条目时,便回退到公用名。RFC 6125 要求在证书呈现任何服务身份时忽略该 CN,因此当其 CN 匹配请求的 peer_name时,仍会接受带有不匹配 DNS SAN 的证书。因此,客户端为一个名称信任的证书可被用于假冒另一个名称。注意: https://github.com/php/php-src/blob/php-8.4.26/NEWS(CVE-2026-91769)

convert.base64-encode、convert.quoted-printable-encode 和 convert.quoted-printable-decode 流筛选器接受 line-break-chars 选项,其长度与字符串本身分开跟踪。过滤器构造函数通过 pestrdup() 复制值,pestrdup() 在第一个空字节处停止,同时保持原始长度。当筛选器稍后发出换行符时,它会将记录的长度复制到截断分配之外,读取超过其末尾,并将相邻的堆字节放入筛选器输出中。
(CVE-2026-92842)

当 HTTP 流封装程序跟随重定向,且响应带有空值的 Location 标头时,重定向代码会读取一个字节,超过保存该位置的堆缓冲区的终点。该越界字节的值决定要建立哪个重定向目标,因此恶意服务器控制将客户端发送至主机根还是当前目录。(CVE-2026-93682)

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

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

解决方案

运行“dnf update php8.2 --releasever 2023.12.20261012”或“dnf update --advisory ALAS2023-2026-3161 --releasever 2023.12.20261012”以更新系统。

另见

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

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

https://explore.alas.aws.amazon.com/CVE-2025-1218.html

https://explore.alas.aws.amazon.com/CVE-2025-14181.html

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

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

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

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

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

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

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

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

插件详情

严重性: Medium

ID: 365295

文件名: al2023_ALAS2023-2026-3161.nasl

版本: 1.2

类型: Local

代理: unix

发布时间: 2026/10/12

最近更新时间: 2026/10/13

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

风险信息

VPR

风险因素: Low

分数: 3.5

百分位: 51.46

CVSS v2

风险因素: Medium

基本分数: 6.1

时间分数: 4.5

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

CVSS 分数来源: CVE-2026-91768

CVSS v3

风险因素: Medium

基本分数: 6.5

时间分数: 5.7

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

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

漏洞信息

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

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

易利用性: No known exploits are available

补丁发布日期: 2026/10/12

漏洞发布日期: 2026/9/22

参考资料信息

CVE: CVE-2025-1218, CVE-2025-14181, CVE-2026-6103, CVE-2026-91765, CVE-2026-91766, CVE-2026-91767, CVE-2026-91768, CVE-2026-91769, CVE-2026-92842, CVE-2026-93682