CVE-2011-1398

medium
Published 2012-08-30 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.3

Description

The sapi_header_op function in main/SAPI.c in PHP before 5.3.11 and 5.4.x before 5.4.0RC2 does not check 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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-37688 remote php verified
Mr. Tokumaru ยท 2011-10-06

PHP 5.3.11/5.4.0RC2 - 'header()' HTTP Header Injection

Source code queued for fetch โ€” refresh in a moment.

Application impact

VendorProductVersionsFixed
php phpphp{"endIncluding":"5.3.10"}
php phpphp5.3.0
php phpphp5.3.1
php phpphp5.3.2
php phpphp5.3.3
php phpphp5.3.4
php phpphp5.3.5
php phpphp5.3.6
php phpphp5.3.7
php phpphp5.3.8
php phpphp5.3.9

References

CWEs

CWE-20

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.