BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2012-4388

MEDIUM 4.3 CVSS 2.0
Published
September 7, 2012
Last modified
June 16, 2026
NVD status
Modified
Reported by
secalert@redhat.com
Weakness
CWE-20
CVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

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.

Affected products and versions

  • PHP — From 5.3.0 (including) to 5.3.11 (excluding)
  • PHP versions 5.4.0rc2

References

  • article.gmane.org http://article.gmane.org/gmane.comp.php.devel/70584 Broken Link
  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html Mailing List, Third Party Advisory
  • openwall.com http://openwall.com/lists/oss-security/2012/08/29/5 Mailing List, Third Party Advisory
  • openwall.com http://openwall.com/lists/oss-security/2012/09/02/1 Mailing List, Third Party Advisory
  • openwall.com http://openwall.com/lists/oss-security/2012/09/05/15 Mailing List, Third Party Advisory
  • openwall.com http://openwall.com/lists/oss-security/2012/09/07/3 Mailing List, Third Party Advisory
  • security-tracker.debian.org http://security-tracker.debian.org/tracker/CVE-2012-4388 Third Party Advisory
  • svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986 Exploit, Patch, Vendor Advisory
  • www.securitytracker.com http://www.securitytracker.com/id?1027463 Third Party Advisory, VDB Entry
  • www.ubuntu.com http://www.ubuntu.com/usn/USN-1569-1 Third Party Advisory
  • bugs.php.net https://bugs.php.net/bug.php?id=60227 Vendor Advisory
  • nvd.nist.gov Official NVD record