CVE-2024-5585

HIGH
Published Jun 9, 2024 Modified Nov 21, 2024 CWE-78 CWE-116

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.

Is your site exposed to CVE-2024-5585?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

7.7
HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L

Weakness Type (CWE)

CWE-78 OS Command Injection
CWE-116 CWE-116

Affected Products

Vendor Product
php php
php php
php php
fedoraproject fedora

References

Frequently Asked Questions

What is CVE-2024-5585? +
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. It has a CVSS v3.1 base score of 7.7 (HIGH).
How severe is CVE-2024-5585? +
CVE-2024-5585 has a CVSS v3.1 score of 7.7 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-5585? +
CVE-2024-5585 affects products from fedoraproject, php, specifically: fedora, php. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-5585? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-5585 — free, no signup required.