{"id":"CVE-2012-2311","state":"PUBLISHED","title":"sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence b","description":"sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (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.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.","publishedAt":"2012-05-11T10:00:00.000Z","updatedAt":"2024-08-06T19:26:09.031Z","severity":null,"assigner":"redhat","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"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://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1","http://secunia.com/advisories/49014","http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","https://bugs.php.net/bug.php?id=61910","http://www.php.net/archive/2012.php#id2012-05-08-1","http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","http://support.apple.com/kb/HT5501","https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862","http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","http://www.kb.cert.org/vuls/id/520827","http://www.debian.org/security/2012/dsa-2465","http://secunia.com/advisories/49085","http://www.php.net/ChangeLog-5.php#5.4.3"],"weaknesses":[],"ingestedAt":"2026-10-29T19:40:19.239Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2012/2xxx/CVE-2012-2311.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2012-2311","state":"PUBLISHED","datePublished":"2012-05-11T10:00:00.000Z","dateUpdated":"2024-08-06T19:26:09.031Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2012-04-19T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (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.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","name":"SSRT100856","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","name":"SUSE-SU-2012:0604","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.securitytracker.com/id?1027022","name":"1027022","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","name":"openSUSE-SU-2012:0590","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/49014","name":"49014","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","name":"SUSE-SU-2012:0598","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://bugs.php.net/bug.php?id=61910","tags":["x_refsource_CONFIRM"]},{"url":"http://www.php.net/archive/2012.php#id2012-05-08-1","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","name":"APPLE-SA-2012-09-19-2","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://support.apple.com/kb/HT5501","tags":["x_refsource_CONFIRM"]},{"url":"https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862","name":"SSRT100992","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","tags":["x_refsource_MISC"]},{"url":"http://www.kb.cert.org/vuls/id/520827","name":"VU#520827","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","name":"HPSBUX02791","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.debian.org/security/2012/dsa-2465","name":"DSA-2465","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://secunia.com/advisories/49085","name":"49085","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862","name":"HPSBMU02900","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://www.php.net/ChangeLog-5.php#5.4.3","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2018-01-17T19:57:01.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"datePublic":"2012-05-08T00:00:00.000Z"},"adp":[{"title":"CVE Program Container","references":[{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","name":"SSRT100856","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html","name":"SUSE-SU-2012:0604","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.securitytracker.com/id?1027022","name":"1027022","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html","name":"openSUSE-SU-2012:0590","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/49014","name":"49014","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html","name":"SUSE-SU-2012:0598","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://bugs.php.net/bug.php?id=61910","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.php.net/archive/2012.php#id2012-05-08-1","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","name":"APPLE-SA-2012-09-19-2","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://support.apple.com/kb/HT5501","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862","name":"SSRT100992","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.kb.cert.org/vuls/id/520827","name":"VU#520827","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred"]},{"url":"http://marc.info/?l=bugtraq&m=134012830914727&w=2","name":"HPSBUX02791","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.debian.org/security/2012/dsa-2465","name":"DSA-2465","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://secunia.com/advisories/49085","name":"49085","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862","name":"HPSBMU02900","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php#5.4.3","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T19:26:09.031Z"}}]}}}