{"schema_version":"1.9.0","id":"CVE-2024-1874","published":"2024-04-29T03:57:35.624Z","modified":"2026-08-12T03:51:18.803738615Z","aliases":["BIT-libphp-2024-1874","BIT-php-2024-1874","BIT-php-min-2024-1874","GHSA-pc52-254m-w9w7"],"related":["HSEC-2024-0003","openSUSE-SU-2024:13867-1"],"summary":"Command injection via array-ish $command parameter of proc_open()","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"},{"fixed":"9119509142637005d079bcc2815ee43ec1c79524"},{"introduced":"70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"},{"fixed":"d94fdf582e1fe4a1d85ded00a4c8b9935486c51d"},{"introduced":"d26068059e83fe40de3430a512471d194119bee0"},{"fixed":"9a9c7197c4774c80f622222b3dfa874e6dc44f67"}],"database_specific":{"cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.1.0"},{"fixed":"8.1.28"},{"introduced":"8.2.0"},{"fixed":"8.2.18"},{"introduced":"8.3.0"},{"fixed":"8.3.5"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1874.json"}}],"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/04/12/11"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/06/07/1"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/"},{"type":"WEB","url":"https://www.kb.cert.org/vuls/id/123335"},{"type":"WEB","url":"https://www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-windows-systems-cve-2024-1874-and-cve-2024-5585"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1874.json"},{"type":"ADVISORY","url":"https://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1874"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240510-0009/"}],"database_specific":{"cna_assigner":"php","cwe_ids":["CWE-116"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1874.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"}]}