{"cve":{"cve_id":"CVE-2012-1823","is_kev":true,"kev_date_added":"2022-03-25","kev_vendor_project":"PHP","kev_product":"PHP","kev_vulnerability_name":"PHP-CGI Query String Parameter Vulnerability","kev_short_description":"sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.","kev_required_action":"Apply updates per vendor instructions.","kev_due_date":"2022-04-15","kev_known_ransomware":false,"kev_notes":"https://nvd.nist.gov/vuln/detail/CVE-2012-1823","kev_cwes":["CWE-20"],"epss_score":0.99998,"epss_percentile":0.99989,"epss_as_of":"2026-06-23","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.","published_at":"2012-05-11T10:00:00Z","last_modified_at":null,"cvss_v3_score":9.8,"cvss_v3_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_v3_severity":"CRITICAL","cvss_v4_score":null,"cvss_v4_vector":null,"cvss_v4_severity":null,"ssvc_decision":null,"ssvc_exploitation":"active","ssvc_automatable":true,"ssvc_technical_impact":"total","cwes":["CWE-77"],"nvd_references":["http://marc.info/?l=bugtraq&m=134012830914727&w=2","http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","http://www.securitytracker.com/id?1027022","http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","http://www.mandriva.com/security/advisories?name=MDVSA-2012:068","http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","http://rhn.redhat.com/errata/RHSA-2012-0546.html","http://rhn.redhat.com/errata/RHSA-2012-0568.html","http://rhn.redhat.com/errata/RHSA-2012-0569.html","http://www.php.net/ChangeLog-5.php#5.4.2","http://secunia.com/advisories/49014","http://rhn.redhat.com/errata/RHSA-2012-0570.html","http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","https://bugs.php.net/bug.php?id=61910","http://www.kb.cert.org/vuls/id/673343","http://rhn.redhat.com/errata/RHSA-2012-0547.html","http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","http://support.apple.com/kb/HT5501","http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","http://secunia.com/advisories/49065","http://www.kb.cert.org/vuls/id/520827","https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1","http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","http://marc.info/?l=bugtraq&m=134012830914727&w=2","http://www.debian.org/security/2012/dsa-2465","http://secunia.com/advisories/49085","http://www.php.net/archive/2012.php#id2012-05-03-1","http://secunia.com/advisories/49087","http://www.openwall.com/lists/oss-security/2024/06/07/1","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/"],"vuln_status":null,"trending_score":0.6099964,"is_trending":false,"has_trended":false,"trended_number_one":false,"trending_peak_score":null,"trending_peak_rank":null,"started_trending_at":null,"trended_number_one_at":null,"summary_generated":null,"summary_generated_at":null,"summary_model":null,"created_at":"2026-06-24T00:09:31.350578Z","updated_at":"2026-06-29T02:30:27.550645Z"},"effective_severity":"CRITICAL","badges":["kev","poc","epss"],"impact_analysis":[],"cvss_v3_decoded":{"version":"3.1","metrics":[{"metric":"AV","name":"Attack Vector","value":"N","value_label":"Network"},{"metric":"AC","name":"Attack Complexity","value":"L","value_label":"Low"},{"metric":"PR","name":"Privileges Required","value":"N","value_label":"None"},{"metric":"UI","name":"User Interaction","value":"N","value_label":"None"},{"metric":"S","name":"Scope","value":"U","value_label":"Unchanged"},{"metric":"C","name":"Confidentiality","value":"H","value_label":"High"},{"metric":"I","name":"Integrity","value":"H","value_label":"High"},{"metric":"A","name":"Availability","value":"H","value_label":"High"}]},"cvss_v4_decoded":{"version":null,"metrics":[]},"affected":[],"exploit_refs":[{"source":"nuclei","kind":"nuclei","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2012/CVE-2012-1823.yaml","title":"PHP CGI v5.3.12/5.4.2 Remote Code Execution","author":"pikpikcu","disclosed_at":null}],"news":[],"references":[{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"http://www.securitytracker.com/id?1027022","source_type":"MISC","tags":[]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","source_type":"MISC","tags":[]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:068","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0546.html","source_type":"MISC","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0568.html","source_type":"MISC","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0569.html","source_type":"MISC","tags":[]},{"url":"http://www.php.net/ChangeLog-5.php#5.4.2","source_type":"MISC","tags":[]},{"url":"http://secunia.com/advisories/49014","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0570.html","source_type":"MISC","tags":[]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"https://bugs.php.net/bug.php?id=61910","source_type":"MISC","tags":[]},{"url":"http://www.kb.cert.org/vuls/id/673343","source_type":"MISC","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0547.html","source_type":"MISC","tags":[]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"http://support.apple.com/kb/HT5501","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","source_type":"MISC","tags":[]},{"url":"http://secunia.com/advisories/49065","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://www.kb.cert.org/vuls/id/520827","source_type":"MISC","tags":[]},{"url":"https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1","source_type":"MISC","tags":["patch"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","source_type":"MISC","tags":[]},{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"http://www.debian.org/security/2012/dsa-2465","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://secunia.com/advisories/49085","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://www.php.net/archive/2012.php#id2012-05-03-1","source_type":"MISC","tags":[]},{"url":"http://secunia.com/advisories/49087","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","source_type":"MAILING_LIST","tags":["mailing-list"]}],"timeline":[{"type":"published","at":"2012-05-11T10:00:00Z","label":"CVE published","source":null},{"type":"cisa_reported","at":"2022-03-25T00:00:00Z","label":"Added to CISA KEV catalog","source":"kev"},{"type":"poc_available","at":"2026-06-24T00:29:48.638073Z","label":"Public PoC available","source":"nuclei"},{"type":"ssvc_changed","at":"2026-06-24T00:31:01.449015Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"ssvc_changed","at":"2026-06-24T00:31:01.449015Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"ssvc_changed","at":"2026-06-24T00:31:01.449015Z","label":"SSVC decision revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:01.449015Z","label":"CVSS score revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:01.449015Z","label":"CVSS score revised","source":"vulnrichment"},{"type":"cvss_changed","at":"2026-06-24T00:31:01.449015Z","label":"CVSS score revised","source":"vulnrichment"}]}