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.

Published2024-04-11
Updated2024-04-14
AffectedPHP versions < 8.1.28; PHP versions < 8.2.18; PHP versions < 8.3.5
FixUpgrade to 8.1.28; 8.2.18; 8.3.6 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7

CVEs (1)

CVECWETypeImpactLinks
CVE-2024-1874CWE-116OtherOtherNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

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.