{"id":"CVE-2012-4388","url":"https://www.cyber-defence.io/tools/cve/CVE-2012-4388","generatedAt":"2026-10-28T03:22:11.669Z","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), which allows remote attackers to bypass an HTTP response-splitting…","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.","published":"2012-09-07T22:55:03.000Z","lastModified":"2026-06-16T23:44:55.000Z","status":"Modified","sourceIdentifier":"secalert@redhat.com","cvss":{"version":"2.0","score":4.3,"severity":"MEDIUM","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N"},"cwe":["CWE-20"],"affected":["php/php","canonical/ubuntu linux","debian/debian linux"],"epss":{"score":0.04225,"percentile":0.90937,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (4.23%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"http://article.gmane.org/gmane.comp.php.devel/70584","tags":["Broken Link"],"source":"secalert@redhat.com"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://openwall.com/lists/oss-security/2012/08/29/5","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://openwall.com/lists/oss-security/2012/09/02/1","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://openwall.com/lists/oss-security/2012/09/05/15","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://openwall.com/lists/oss-security/2012/09/07/3","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://security-tracker.debian.org/tracker/CVE-2012-4388","tags":["Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986","tags":["Exploit","Patch","Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://www.securitytracker.com/id?1027463","tags":["Third Party Advisory","VDB Entry"],"source":"secalert@redhat.com"},{"url":"http://www.ubuntu.com/usn/USN-1569-1","tags":["Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"https://bugs.php.net/bug.php?id=60227","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://article.gmane.org/gmane.comp.php.devel/70584","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://openwall.com/lists/oss-security/2012/08/29/5","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://openwall.com/lists/oss-security/2012/09/02/1","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://openwall.com/lists/oss-security/2012/09/05/15","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://openwall.com/lists/oss-security/2012/09/07/3","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://security-tracker.debian.org/tracker/CVE-2012-4388","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986","tags":["Exploit","Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1027463","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-1569-1","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=60227","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-4388","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}