CVE-2012-4388
publishedphp: header() injection detection bypass (incorrect fix for CVE-2011-1398)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | redhat · cna |
Weaknesses
1- n/a
References
11- [internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP http://article.gmane.org/gmane.comp.php.devel/70584
- SUSE-SU-2013:1315 http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html
- [oss-security] 20120829 php header() header injection detection bypass http://openwall.com/lists/oss-security/2012/08/29/5
- [oss-security] 20120901 Re: php header() header injection detection bypass http://openwall.com/lists/oss-security/2012/09/02/1
- [oss-security] 20120905 Re: php header() header injection detection bypass http://openwall.com/lists/oss-security/2012/09/05/15
- [oss-security] 20120906 Re: Re: php header() header injection detection bypass http://openwall.com/lists/oss-security/2012/09/07/3
- http://security-tracker.debian.org/tracker/CVE-2012-4388
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986
- 1027463 http://www.securitytracker.com/id?1027463
- USN-1569-1 http://www.ubuntu.com/usn/USN-1569-1
- https://bugs.php.net/bug.php?id=60227
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5fa02863c4e7c7f6dc1fd9274728e8c8f9107cd39844f5c141ac6d7878ece502
- Ingested
- 23 Sep 2026, 07:39:20 UTC
- Source record
- Official CVE record