SecurityContext

CVE-2012-4388: PHP - HTTP Response Splitting

  • Cve: CVE-2012-4388
  • Name: PHP - HTTP Response Splitting
  • 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: Attackers can perform HTTP response splitting, potentially leading to web cache poisoning, cross-site scripting, or session hijacking.
  • Remediation: Update to a version later than 5.4.0.
  • Vulnerability type: crlf_injection
  • Vulnerability impact: web_cache_poisoning
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.3
  • Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
  • Epss score: 0.04225
  • Epss percentile: 0.91251
  • Assignee: [email protected]
  • Published at: 2012-09-07T22:55:02Z
  • Age in days: 5191
  • Modified at: 2026-06-16T23:44:55Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 10
  • Products total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-4388
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation

Public exploits

UrlSourceAdded date
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986nvd2012-09-07

References

Same in every row:

  • Source: nvd
UrlTags
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/SAPI.c?r1=323986&r2=323985&pathrev=323986Exploit, Patch, Vendor Advisory
https://bugs.php.net/bug.php?id=60227Vendor Advisory
http://lists.opensuse.org/opensuse-security-announce/2013-08/msg00006.htmlMailing List, Third Party Advisory
http://openwall.com/lists/oss-security/2012/08/29/5Mailing List, Third Party Advisory
http://openwall.com/lists/oss-security/2012/09/02/1Mailing List, Third Party Advisory
http://openwall.com/lists/oss-security/2012/09/05/15Mailing List, Third Party Advisory
http://openwall.com/lists/oss-security/2012/09/07/3Mailing List, Third Party Advisory
http://security-tracker.debian.org/tracker/CVE-2012-4388Third Party Advisory
http://www.securitytracker.com/id?1027463Third Party Advisory, VDB Entry
http://www.ubuntu.com/usn/USN-1569-1Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
php:php= 5.4.0 rc2; >= 5.3.0, < 5.3.11/v1/products/php/php
debian:debian_linux= 6.0/v1/products/debian/debian_linux
canonical:ubuntu_linux= 12.04, = 11.10, = 11.04, = 10.04, = 8.04/v1/products/canonical/ubuntu_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2012-09-07
  • Remote: yes
  • Exposed hosts: 21109361
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports