中危 通过 proc_open() 的数组型 $command 参数进行命令注入(绕过 CVE-2024-1874 修复)(CVE-2024-5585)

CVE编号

CVE-2024-5585

利用情况

暂无

补丁情况

官方补丁

披露时间

2024-06-10
漏洞描述
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 php php * From
(including)
8.1.0
Up to
(excluding)
8.1.29
运行在以下环境
应用 php php * From
(including)
8.2.0
Up to
(excluding)
8.2.20
运行在以下环境
应用 php php * From
(including)
8.3.0
Up to
(excluding)
8.3.8
运行在以下环境
系统 alpine_3.19 php81 * Up to
(excluding)
8.2.20-r0
运行在以下环境
系统 fedoraproject fedora 40 -
运行在以下环境
系统 fedora_39 php * Up to
(excluding)
8.2.20-1.fc39
运行在以下环境
系统 fedora_40 php * Up to
(excluding)
8.3.8-1.fc40
阿里云评分
6.4
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-116 对输出编码和转义不恰当
阿里云安全产品覆盖情况