{"id":"CVE-2012-4388","state":"PUBLISHED","title":"The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), whi","description":"The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote attackers to bypass an HTTP response-splitting protection mechanism via a crafted URL, related to improper interaction between the PHP header function and certain browsers, as demonstrated by Internet Explorer and Google Chrome.  NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-1398.","publishedAt":"2012-09-07T22:00:00.000Z","updatedAt":"2024-08-06T20:35:09.222Z","severity":null,"assigner":"redhat","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://security-tracker.debian.org/tracker/CVE-2012-4388","http://openwall.com/lists/oss-security/2012/09/05/15","http://www.securitytracker.com/id?1027463","http://openwall.com/lists/oss-security/2012/09/07/3","http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986","https://bugs.php.net/bug.php?id=60227","http://openwall.com/lists/oss-security/2012/08/29/5","http://openwall.com/lists/oss-security/2012/09/02/1","http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html","http://article.gmane.org/gmane.comp.php.devel/70584","http://www.ubuntu.com/usn/USN-1569-1"],"weaknesses":[],"ingestedAt":"2026-10-29T19:40:25.231Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2012/4xxx/CVE-2012-4388.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2012-4388","state":"PUBLISHED","datePublished":"2012-09-07T22:00:00.000Z","dateUpdated":"2024-08-06T20:35:09.222Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2012-08-21T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote attackers to bypass an HTTP response-splitting protection mechanism via a crafted URL, related to improper interaction between the PHP header function and certain browsers, as demonstrated by Internet Explorer and Google Chrome.  NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-1398."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://security-tracker.debian.org/tracker/CVE-2012-4388","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2012/09/05/15","name":"[oss-security] 20120905 Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securitytracker.com/id?1027463","name":"1027463","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://openwall.com/lists/oss-security/2012/09/07/3","name":"[oss-security] 20120906 Re: Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986","tags":["x_refsource_CONFIRM"]},{"url":"https://bugs.php.net/bug.php?id=60227","tags":["x_refsource_MISC"]},{"url":"http://openwall.com/lists/oss-security/2012/08/29/5","name":"[oss-security] 20120829 php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://openwall.com/lists/oss-security/2012/09/02/1","name":"[oss-security] 20120901 Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html","name":"SUSE-SU-2013:1315","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://article.gmane.org/gmane.comp.php.devel/70584","name":"[internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.ubuntu.com/usn/USN-1569-1","name":"USN-1569-1","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2012-10-13T09:00:00.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"datePublic":"2012-02-03T00:00:00.000Z"},"adp":[{"title":"CVE Program Container","references":[{"url":"http://security-tracker.debian.org/tracker/CVE-2012-4388","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2012/09/05/15","name":"[oss-security] 20120905 Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.securitytracker.com/id?1027463","name":"1027463","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2012/09/07/3","name":"[oss-security] 20120906 Re: Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://bugs.php.net/bug.php?id=60227","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2012/08/29/5","name":"[oss-security] 20120829 php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2012/09/02/1","name":"[oss-security] 20120901 Re: php header() header injection detection bypass","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html","name":"SUSE-SU-2013:1315","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://article.gmane.org/gmane.comp.php.devel/70584","name":"[internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.ubuntu.com/usn/USN-1569-1","name":"USN-1569-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T20:35:09.222Z"}}]}}}