Vulnerabilities · 2012 · Php
CVE-2012-4388
Php vulnerability
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
Php, Ubuntu Linux, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=32 · Exploit
- bugs.php.net/bug.php?id=60227 · Vendor Advisory
- lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.html · Third Party Advisory
- openwall.com/lists/oss-security/2012/08/29/5 · Third Party Advisory
- openwall.com/lists/oss-security/2012/09/02/1 · Third Party Advisory
- openwall.com/lists/oss-security/2012/09/05/15 · Third Party Advisory
- openwall.com/lists/oss-security/2012/09/07/3 · Third Party Advisory
- security-tracker.debian.org/tracker/CVE-2012-4388 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2012-4388
- cve.org/CVERecord?id=CVE-2012-4388
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.