CVE-2012-4388 json
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 sequen…
published 2012-09-07 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-4328
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-4388 updated cvss 4.3
php: header() injection detection bypass (incorrect fix for CVE-2011-1398)
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.23% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
svn.php.net
/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986
exploit, patch, vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2013-08/msg00006.html
vendor-advisory, mailing-list, third-party-advisory
-
ubuntu.com
/usn/USN-1569-1
vendor-advisory, third-party-advisory
-
bugs.php.net
/bug.php?id=60227
vendor-advisory
-
security-tracker.debian.org
/tracker/CVE-2012-4388
third-party-advisory
-
openwall.com
/lists/oss-security/2012/09/05/15
mailing-list, third-party-advisory
-
securitytracker.com
/id?1027463
vdb-entry, third-party-advisory
-
openwall.com
/lists/oss-security/2012/09/07/3
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2012/08/29/5
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2012/09/02/1
mailing-list, third-party-advisory
-
article.gmane.org
/gmane.comp.php.devel/70584
mailing-list, broken-link
Sources
- CVE List CVE-2012-4388
- NVD CVE-2012-4388
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.