All vulnerabilities

Servers and applications

CVE-2012-4388

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…

Severity
Medium 4.3
Published
7 Sept 2012
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
5.3.11
Exploit chance
4.2% in the next 30 daysHigher than 91% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Over the network · No login needed
Attacker can
Change some data
CVSS vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Sources
NVD

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.

From NVD.

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 5.3.0 before 5.3.11
  • Version 5.4.0-rc2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-4388
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-4388