{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-1874","id":"CVE-2024-1874","title":"Command injection via array-ish $command parameter of proc_open()","description":"In PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, 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.","descriptionLong":"In PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, 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.","published":"2024-04-29T03:57:35.624Z","updated":"2026-10-28T02:31:10.565069585Z","reserved":"2024-02-25T04:39:00.479Z","status":"Modified","rejected":false,"assigner":"php","metric":{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"php"},"metrics":[{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"php"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"php.net"},{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","rating":"critical","source":"OSV"}],"rating":"critical","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"lessThan":"8.1.28","status":"affected","version":"8.1.*","versionType":"semver"},{"lessThan":"8.2.18","status":"affected","version":"8.2.*","versionType":"semver"},{"lessThan":"8.3.5","status":"affected","version":"8.3.*","versionType":"semver"}],"platforms":["Windows"]}],"packages":[],"cwes":["CWE-116"],"aliases":["BIT-libphp-2024-1874","BIT-php-2024-1874","BIT-php-min-2024-1874","GHSA-pc52-254m-w9w7"],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7","tags":["x_transferred","Exploit","Vendor Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/12/11","tags":["x_transferred","Mailing List","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240510-0009/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["x_transferred","Mailing List","web"]},{"url":"https://www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-cve-2024-1874-and-cve-2024-5585","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/","tags":["web"]},{"url":"https://www.kb.cert.org/vuls/id/123335","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1874.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1874","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.32799,"epssPercentile":0.98384,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-1874","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1874","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-1874","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-1874","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 33% with CVSS 9.4"],"attention":null}