InfraGuard

CVE-2024-4577

Argument Injection in PHP-CGI

9.8 CVSS 3.1 已遭在野利用EPSS 100.0%

问题所在

在 CGI 模式下运行的 Windows 版 PHP 存在 OS 命令注入漏洞。攻击者可利用此漏洞在服务器上执行任意代码。

影响范围

该漏洞影响在 CGI 模式下运行的 Windows 版 PHP 安装,具体版本范围为 8.1.0 至 8.1.29 之前、8.2.0 至 8.2.20 之前,以及 8.3.0 至 8.3.8 之前。

应对措施

将 PHP 升级至修复版本 8.1.29、8.2.20 或 8.3.8。如果无法立即应用更新,请遵循厂商的缓解措施说明或停止使用该产品。

原始描述

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.

已知被利用(CISA KEV)

加入 KEV 日期
2024-06-12
修复期限(美国联邦机构)
2024-07-03
用于勒索软件
Known
要求采取的措施
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

受影响的软件

详情

发布日期
2024-06-10
最后修改
2025-10-22
CVSS 向量
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-78
EPSS(30 天内被利用概率)
99.99% (百分位 100)

参考资料

在您自己的服务器上追踪这些版本

InfraGuard 从每台服务器收集已安装软件的版本,并标出存在已知漏洞的版本。自托管部署——数据不会离开您的网络。

每周已被利用漏洞摘要

每周一次,推送与自托管服务器相关的 KEV 新增条目。不发送其他邮件。

本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。