Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-5585— Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)

Quick assessment

Affected
PHP Group PHP
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PHP是一种在服务器端执行的脚本语言。 PHP存在安全漏洞,该漏洞源于转义不足,如果执行命令的参数被恶意用户控制,用户可以提供参数在Windows shell中执行任意命令。以下版本受到影响:8.1至8.1.29之前版本,8.3至8.3.8之前版本,8.2至8.2.20之前版本。

CVSS 7.7 · High EPSS 28.81% · P98
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-5585

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对输出编码和转义不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
PHP 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PHP是一种在服务器端执行的脚本语言。 PHP存在安全漏洞,该漏洞源于转义不足,如果执行命令的参数被恶意用户控制,用户可以提供参数在Windows shell中执行任意命令。以下版本受到影响:8.1至8.1.29之前版本,8.3至8.3.8之前版本,8.2至8.2.20之前版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
PHP Group PHP 8.1.* ~ 8.1.29 -

II. Public POCs for CVE-2024-5585

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-5585

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-5585 (2)

Mailing List Discussions for CVE-2024-5585 (3)

Same Patch Batch · PHP Group · 2024-06-09 · 4 CVEs total

CVE-2024-4577 9.8 CRITICAL Argument Injection in PHP-CGI
CVE-2024-5458 5.3 MEDIUM Filter bypass in filter_var (FILTER_VALIDATE_URL)
CVE-2024-2408 PHP is vulnerable to the Marvin Attack

IV. Related Vulnerabilities

V. Comments for CVE-2024-5585

No comments yet


Leave a comment