{"cve_id":"CVE-2024-4577","published":"2024-06-09T20:15:09.550000+00:00","last_modified":"2026-06-17T08:02:11.493000+00:00","vuln_status":"Analyzed","description":"In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use \"Best-Fit\" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.","cvss_version":"3.1","cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","base_score":9.8,"base_severity":"CRITICAL","attack_vector":"NETWORK","privileges_req":"NONE","user_interaction":"NONE","scope":"UNCHANGED","impact_c":"HIGH","impact_i":"HIGH","impact_a":"HIGH","cwe_ids":["CWE-78"],"in_kev":true,"kev_date_added":"2024-06-12","kev_ransomware":true,"epss_score":0.99987,"epss_percentile":0.99984,"cap_rule_version":"0.1.1","stage":"INITIAL_ACCESS","req_access":"NONE","req_vector":"NETWORK","req_user_interaction":false,"grant_access":"USER","caps":["CODE_EXEC"],"terminal":false,"cap_confidence":"high","ingested_at":"2026-09-18T11:04:40.455810+00:00","first_seen":"2024-06-09T20:15:09.550000+00:00","kev_first_seen":"2024-06-12T00:00:00+00:00","novelty_score":0.0,"novelty_reasons":[],"novelty_at":null,"vendors":["fedoraproject","microsoft","php"],"products":["fedora","php","windows"],"affected":[{"vendor":"fedoraproject","product":"fedora","ranges":["39","40"]},{"vendor":"php","product":"php","ranges":["≥ 8.1.0 and < 8.1.29","≥ 8.2.0 and < 8.2.20","≥ 8.3.0 and < 8.3.8"]}]}