CVE-2012-4388
Severity CVSS v4.0:
Pending analysis
Type:
CWE-20
Input Validation
Publication date:
07/09/2012
Last modified:
11/04/2025
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.
Impact
Base Score 2.0
4.30
Severity 2.0
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 5.3.0 (including) | 5.3.11 (excluding) |
| cpe:2.3:a:php:php:5.4.0:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:* | ||
| cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:-:*:*:* | ||
| cpe:2.3:o:canonical:ubuntu_linux:11.04:*:*:*:*:*:*:* | ||
| cpe:2.3:o:canonical:ubuntu_linux:11.10:*:*:*:*:*:*:* | ||
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* | ||
| cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- http://article.gmane.org/gmane.comp.php.devel/70584
- http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html
- http://openwall.com/lists/oss-security/2012/08/29/5
- http://openwall.com/lists/oss-security/2012/09/02/1
- http://openwall.com/lists/oss-security/2012/09/05/15
- 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
- http://www.securitytracker.com/id?1027463=
- http://www.ubuntu.com/usn/USN-1569-1
- https://bugs.php.net/bug.php?id=60227
- http://article.gmane.org/gmane.comp.php.devel/70584
- http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html
- http://openwall.com/lists/oss-security/2012/08/29/5
- http://openwall.com/lists/oss-security/2012/09/02/1
- http://openwall.com/lists/oss-security/2012/09/05/15
- 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
- http://www.securitytracker.com/id?1027463=
- http://www.ubuntu.com/usn/USN-1569-1
- https://bugs.php.net/bug.php?id=60227



