CVE-2024-5585: Php · Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)
Affects phpSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · 28% EPSS · fixed in 8.3.8 : patch php soon.
Data as of 26 Oct 2026, 06:26 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 28.8% chance of exploitation in 30 days – higher than 98% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.3.8, 8.2.20, 8.1.29
Exploitation evidence
Disclosed: evidence found.
CVE published 12 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade php to 8.3.8, 8.2.20 or 8.1.29.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamiphppkg:bitnami/phpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade to PHP versions 8.1.29 or later, 8.2.20 or later, and 8.3.8 or later to mitigate this issue. Applying these official fixes will prevent the bypass of the previous CVE-2024-1874 patch. No additional mitigation steps are indicated by the vendor advisory.
Description
CVE-2024-5585 is a command injection vulnerability in PHP affecting versions before 8.1.29, 8.2.20, and 8.3.8. It bypasses the fix for CVE-2024-1874 when the command name includes trailing spaces. The vulnerability arises from insufficient escaping in proc_open() when used with array syntax, allowing an attacker controlling command arguments to execute arbitrary commands on Windows shells.
References
- openwall.com/lists/oss-security/2024/06/07/1 (opens in a new tab)
- github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ (opens in a new tab)
- security.netapp.com/advisory/ntap-20240726-0002/ (opens in a new tab)
- vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-cve-2024-1874-and-cve-2024-5585 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-5585 (opens in a new tab)