CVE-2012-4388Php
Medium 4.3 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Sep 7, 2012
- Updated
- Jun 16, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 5.3.0 < 5.3.11 |
| php | php | 5.4.0 |
| canonical | ubuntu_linux | 8.04 |
| canonical | ubuntu_linux | 10.04 |
| canonical | ubuntu_linux | 11.04 |
| canonical | ubuntu_linux | 11.10 |
| canonical | ubuntu_linux | 12.04 |
| debian | debian_linux | 6.0 |
Official sources
References
Links published by the sources. Open them with care.
- article.gmane.org Broken Link
- lists.opensuse.org Mailing List Third Party Advisory
- openwall.com Mailing List Third Party Advisory
- openwall.com Mailing List Third Party Advisory
- openwall.com Mailing List Third Party Advisory
- openwall.com Mailing List Third Party Advisory
- security-tracker.debian.org Third Party Advisory
- svn.php.net Exploit Patch Vendor Advisory
- www.securitytracker.com Third Party Advisory VDB Entry
- www.ubuntu.com Third Party Advisory
- bugs.php.net Vendor Advisory