Vendors › PHP
CVE-2024-1874
Critical (9.4) EPSS 6.8% PHP · core
Command injection via array-ish $command parameter of proc_open even if bypass_shell option enabled on Windows
On Windows, proc_open with array-style command arguments mishandles batch files and lets an attacker inject commands even when bypass_shell is enabled.
| Published | 2024-04-11 |
| Updated | 2024-04-14 |
| Affected | PHP versions < 8.1.28; PHP versions < 8.2.18; PHP versions < 8.3.5 |
| Fix | Upgrade to 8.1.28; 8.2.18; 8.3.6 (first fixed release per supported branch). |
| Vendor advisory | https://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7 |
CVEs (1)
| CVE | CWE | Type | Impact | Links |
|---|---|---|---|---|
| CVE-2024-1874 | CWE-116 | Other | Other | NVD · CVE.org · EUVD |
CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.
Same CVE in other advisories
- K000152033 — F5 · N/A (F5 products not affected) · 2025-06-24
PHP vulnerability CVE-2024-1874 - NTAP-20240510-0009 — NetApp · Critical (9.4) · 2024-05-10
CVE-2024-1874 PHP Vulnerability in NetApp Products - MICROSOFT-CVE-2024-1874 — Microsoft · Critical (9.4) · 2024-04-09
Command injection via array-ish $command parameter of proc_open()
Open in the CVEMesh app Create a free account
Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.
CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.