{"cve_id":"CVE-2012-1823","published":"2012-05-11T10:15:48.043000+00:00","last_modified":"2026-06-16T23:40:22.147000+00:00","vuln_status":"Analyzed","description":"sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.","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-77"],"in_kev":true,"kev_date_added":"2022-03-25","kev_ransomware":false,"epss_score":0.99998,"epss_percentile":0.9999,"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-18T08:05:03.362911+00:00","first_seen":"2012-05-11T10:15:48.043000+00:00","kev_first_seen":"2022-03-25T00:00:00+00:00","novelty_score":0.0,"novelty_reasons":[],"novelty_at":null,"vendors":["apple","debian","fedoraproject","hp","opensuse","php","redhat","suse"],"products":["application_stack","debian_linux","enterprise_linux_desktop","enterprise_linux_eus","enterprise_linux_server","enterprise_linux_server_aus","enterprise_linux_workstation","fedora","gluster_storage_server_for_on-premise","hp-ux","linux_enterprise_server","linux_enterprise_software_development_kit","mac_os_x","opensuse","php","storage","storage_for_public_cloud"],"affected":[{"vendor":"apple","product":"mac_os_x","ranges":["≥ 10.8.0 and < 10.8.2","≥ 10.6.8 and < 10.7.5"]},{"vendor":"debian","product":"debian_linux","ranges":["6.0"]},{"vendor":"fedoraproject","product":"fedora","ranges":["40","39"]},{"vendor":"hp","product":"hp-ux","ranges":["b.11.23","b.11.31"]},{"vendor":"opensuse","product":"opensuse","ranges":["11.4","12.1"]},{"vendor":"php","product":"php","ranges":["< 5.3.12","≥ 5.4.0 and < 5.4.2"]},{"vendor":"redhat","product":"application_stack","ranges":["2.0"]},{"vendor":"redhat","product":"enterprise_linux_desktop","ranges":["6.0"]},{"vendor":"redhat","product":"enterprise_linux_eus","ranges":["6.1","6.2","5.6"]},{"vendor":"redhat","product":"enterprise_linux_server","ranges":["5.0","6.0"]},{"vendor":"redhat","product":"enterprise_linux_server_aus","ranges":["5.3","5.6"]},{"vendor":"redhat","product":"enterprise_linux_workstation","ranges":["6.0","5.0"]},{"vendor":"redhat","product":"gluster_storage_server_for_on-premise","ranges":["2.0"]},{"vendor":"redhat","product":"storage","ranges":["2.0"]},{"vendor":"redhat","product":"storage_for_public_cloud","ranges":["2.0"]},{"vendor":"suse","product":"linux_enterprise_server","ranges":["11","10"]},{"vendor":"suse","product":"linux_enterprise_software_development_kit","ranges":["10","11"]}]}