{"vuln_id":"GHSA-9fcc-425m-g385","aliases":["CVE-2024-5585","CVE-2024-1874","GHSA-pc52-254m-w9w7"],"description":"bypass CVE-2024-1874","published_at":"2024-06-09T18:37:46Z","modified_at":"2024-06-09T18:37:46Z","first_seen_at":"2026-11-22T14:05:37.627734Z","severity":"high","severity_source":"ghsa","cvss_score":7.7,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","cwe":["CWE-78"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-9fcc-425m-g385"},"matched_alias":null,"items":[{"id":12672,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-9fcc-425m-g385 / CVE-2024-5585: bypass CVE-2024-1874","summary":"bypass CVE-2024-1874 ### Summary same as CVE-2024-1874 > due to the improper handling of command line arguments on Windows, maliciously crafted arguments can inject arbitrary commands even if the bypass_shell option is enabled. ### Details Add a space at the end of filename, others are the same as [CVE-2024-1874](https://github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7) ### PoC 1. Save the following file as test.bat ``` echo hello ``` 2. Save the following file as 1.php, **notiece the space at the end of argv-filename** ``` true)); proc_close($proc); ``` 3. Run it with PHP and confirm that notepad.exe is popped up. ### Impact Malicious command line arguments in windows platform Patched: 8.1.29, 8.2.20, 8.3.8","url":"https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385","published_at":"2024-06-09T18:37:46Z","updated_at":"2024-06-09T18:37:46Z","fetched_at":"2026-11-22T14:05:37.431200Z","severity":"critical","cvss_score":9.4,"epss":0.06846,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2024-5585","vuln_ids":["CVE-2024-1874","CVE-2024-5585","GHSA-9FCC-425M-G385","GHSA-PC52-254M-W9W7"],"tags":["repo-advisory","CWE-78","security","repo:php/php-src","stack"],"cluster_id":11781,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12672","html":"https://vulnwatch.ve1ve2.com/item/12672"}}]}