{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-1823","id":"CVE-2012-1823","title":"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…","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.","descriptionLong":"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":"2012-05-11T10:00:00.000Z","updated":"2026-06-16T23:40:22.147Z","reserved":"2012-03-21T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"certcc","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-77"],"aliases":[],"references":[{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","tags":["vendor-advisory","x_transferred","Mailing List"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","tags":["vendor-advisory","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id?1027022","tags":["vdb-entry","x_transferred","Broken Link","Third Party Advisory","VDB Entry"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041","tags":["vendor-advisory","x_transferred","Broken Link"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:068","tags":["vendor-advisory","x_transferred","Broken Link"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","tags":["vendor-advisory","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0546.html","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0568.html","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0569.html","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://www.php.net/ChangeLog-5.php#5.4.2","tags":["x_transferred","Exploit","Patch","Release Notes"]},{"url":"http://secunia.com/advisories/49014","tags":["third-party-advisory","x_transferred","Broken Link"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0570.html","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","tags":["vendor-advisory","x_transferred","Mailing List","Third Party Advisory"]},{"url":"https://bugs.php.net/bug.php?id=61910","tags":["x_transferred","Exploit","Patch"]},{"url":"http://www.kb.cert.org/vuls/id/673343","tags":["third-party-advisory","x_transferred","Third Party Advisory","US Government Resource"]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-0547.html","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","tags":["vendor-advisory","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://support.apple.com/kb/HT5501","tags":["x_transferred","Third Party Advisory"]},{"url":"http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","tags":["x_transferred","Broken Link","Exploit"]},{"url":"http://secunia.com/advisories/49065","tags":["third-party-advisory","x_transferred","Broken Link"]},{"url":"http://www.kb.cert.org/vuls/id/520827","tags":["third-party-advisory","x_transferred","Exploit","Third Party Advisory","US Government Resource"]},{"url":"https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1","tags":["x_transferred","Patch"]},{"url":"http://www.debian.org/security/2012/dsa-2465","tags":["vendor-advisory","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/49085","tags":["third-party-advisory","x_transferred","Broken Link"]},{"url":"http://www.php.net/archive/2012.php#id2012-05-03-1","tags":["x_transferred","Release Notes"]},{"url":"http://secunia.com/advisories/49087","tags":["third-party-advisory","x_transferred","Broken Link"]},{"url":"http://www.openwall.com/lists/oss-security/2024/06/07/1","tags":["mailing-list","x_transferred","Mailing List"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["vendor-advisory","x_transferred","Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/","tags":["vendor-advisory","x_transferred","Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/","tags":["Mailing List","Release Notes"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823","tags":["government-resource","US Government Resource"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2022-03-25","kevDue":"2022-04-15","kevEntry":{"cveID":"CVE-2012-1823","vendorProject":"PHP","product":"PHP","vulnerabilityName":"PHP-CGI Query String Parameter Vulnerability","dateAdded":"2022-03-25","shortDescription":"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.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","notes":"https://nvd.nist.gov/vuln/detail/CVE-2012-1823","cwes":["CWE-20"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.99998,"epssPercentile":0.9999,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-1823","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-1823","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-1823","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2022-03-25"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-1823","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 100% with CVSS 9.8"],"attention":null}