{"id":"CVE-2024-5585","aliases":["ALPINE-CVE-2024-5585","AZL-42427","AZL-42439","BELL-CVE-2024-5585","BIT-libphp-2024-5585","BIT-php-2024-5585","BIT-php-min-2024-5585","EUVD-2024-46774","GHSA-9fcc-425m-g385"],"status":"published","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","severity":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.28807,"percentile":0.98162,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-116","CWE-78"],"published":"2024-06-09T18:36:50Z","modified":"2026-11-05T05:40:51Z","fixes":[{"ecosystem":"Alpine:v3.19","package":"php81","fixed_in":["8.1.29-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"php82","fixed_in":["8.2.20-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"php83","fixed_in":["8.3.8-r0"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"php","fixed_in":["8.1.29-1"],"sources":["osv"]},{"ecosystem":"Azure Linux:3","package":"php","fixed_in":["8.3.8-1"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"libphp","fixed_in":["8.1.29","8.2.20","8.3.8"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"php","fixed_in":["8.1.29","8.2.20","8.3.8"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"php-min","fixed_in":["8.1.29","8.2.20","8.3.8"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.19","package":"php81","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.1.29-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"php82","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.2.20-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"php83","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.8-r0"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.1.29-1"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.8-1"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"libphp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.1.29"},{"introduced":"8.2.0"},{"fixed":"8.2.20"},{"introduced":"8.3.0"},{"fixed":"8.3.8"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"php","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.1.29"},{"introduced":"8.2.0"},{"fixed":"8.2.20"},{"introduced":"8.3.0"},{"fixed":"8.3.8"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"php-min","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.1.29"},{"introduced":"8.2.0"},{"fixed":"8.2.20"},{"introduced":"8.3.0"},{"fixed":"8.3.8"}]}]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"php","product":"php"},{"vendor":"php group","product":"php"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385","tags":["x_transferred","Exploit","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240726-0002/","tags":["x_transferred","web","advisory"]},{"url":"https://www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-cve-2024-1874-and-cve-2024-5585","tags":["web"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-5585","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5585","tags":["web","advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2024-5585","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5585.json","tags":["advisory"]},{"url":"https://github.com/php/php-src","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-5585","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","status":"published","published":"2024-06-09T18:36:50.477Z","modified":"2025-02-13T17:54:21.435Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-116","CWE-78"],"updated_at":"2026-11-02T14:34:01.286506Z"}],"euvd":[{"id":"EUVD-2024-46774","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.","status":"published","published":"2024-06-09T18:36:50Z","modified":"2025-02-13T17:54:21Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high"}],"updated_at":"2026-11-02T20:53:31.305109Z"}],"nvd":[{"id":"CVE-2024-5585","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.","status":"published","published":"2024-06-09T19:15:52.597Z","modified":"2026-06-17T08:16:14.4Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-78","CWE-116"],"updated_at":"2026-11-02T14:10:04.111836Z"}],"osv":[{"id":"ALPINE-CVE-2024-5585","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.","status":"published","published":"2024-06-09T19:15:52.597Z","modified":"2026-11-03T06:32:50.440473749Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:16:46.202932Z"},{"id":"AZL-42427","title":"CVE-2024-5585 affecting package php for versions less than 8.1.29-1","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.","status":"published","published":"2024-06-09T19:15:52Z","modified":"2026-04-21T04:29:32.911379Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:04.893995Z"},{"id":"AZL-42439","title":"CVE-2024-5585 affecting package php for versions less than 8.3.8-1","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.","status":"published","published":"2024-06-09T19:15:52Z","modified":"2026-11-05T05:40:51Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-05T16:41:19.893001Z"},{"id":"BELL-CVE-2024-5585","title":"CVE-2024-5585 does not affect BellSoft software","status":"withdrawn","published":"2024-06-12T05:57:14.946712Z","modified":"2026-01-26T09:47:06.07452Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:20.963569Z"},{"id":"CVE-2024-5585","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","status":"published","published":"2024-06-09T18:36:50.477Z","modified":"2026-10-28T02:30:38.851851326Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"high"}],"cwes":["CWE-116","CWE-78"],"updated_at":"2026-11-02T15:44:44.777182Z"},{"id":"BIT-libphp-2024-5585","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","status":"published","published":"2025-08-11T13:54:23.045Z","modified":"2026-09-08T08:48:08.33282502Z","updated_at":"2026-11-02T15:28:32.162822Z"},{"id":"BIT-php-2024-5585","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","status":"published","published":"2024-06-12T07:30:26.608Z","modified":"2026-09-08T08:48:18.224551218Z","updated_at":"2026-11-02T15:28:34.343258Z"},{"id":"BIT-php-min-2024-5585","title":"Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)","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.","status":"published","published":"2025-01-14T19:19:21.208Z","modified":"2026-09-08T08:48:18.137728722Z","updated_at":"2026-11-02T15:28:34.343258Z"}]}}
