Back
CVE-2012-4388
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…
Medium4.3EPSS 4.2%
- Published
- Updated
- Reserved
- Assigned by
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
- EPSS (exploitation in 30 days)
- 4.2% · top 9.0% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Weakness
Affected products
n/a
- affected n/a
References (11)
- http://security-tracker.debian.org/tracker/CVE-2012-4388 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20120905 Re: php header() header injection detection bypass (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 1027463 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- [oss-security] 20120906 Re: Re: php header() header injection detection bypass (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://bugs.php.net/bug.php?id=60227 (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20120829 php header() header injection detection bypass (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20120901 Re: php header() header injection detection bypass (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- SUSE-SU-2013:1315 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [internals] 20120203 [PHP-DEV] The case of HTTP response splitting protection in PHP (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- USN-1569-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .