CVE-2024-5585

CVE-2024-5585 is a high-severity vulnerability in Php with a CVSS 3.x base score of 7.7. Its EPSS exploit-prediction score of 29% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-116.

Key facts

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.

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.
How severe is CVE-2024-5585?
CVE-2024-5585 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability low.
Is CVE-2024-5585 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 29% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-5585?
CVE-2024-5585 primarily affects Php. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-5585?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-5585 have an EU (EUVD) identifier?
Yes. CVE-2024-5585 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-46774.
When was CVE-2024-5585 published?
CVE-2024-5585 was published on 2024-06-09 and last updated on 2026-06-17.

References

Affected products (2)

More vulnerabilities in Php

All CVEs affecting Php →

Other CWE-116 vulnerabilities

Browse all CWE-116 vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: