Researchers documented multiple ways HTTP header injection can occur when applications place untrusted input into response headers, showing that obsolete line folding and encoding edge cases can turn filtered data into new headers. One documented path abused Linear White Space (LWS) permitted under RFC 2616, where folded header lines could be interpreted inconsistently by browsers; Internet Explorer through IE11 could treat a folded continuation line as a separate header, enabling response splitting and browser-side script execution with impact similar to cross-site scripting. Later guidance in RFC 7230 deprecated this folding behavior and prohibited senders from emitting it in most cases.
A separate case in the Java web server Undertow (CVE-2018-1067) showed how CR/LF filtering could be bypassed even when direct newline characters were blocked. Undertow validated Java char values before converting them to bytes, allowing attackers to use multibyte characters such as U+560A that truncated to 0x0A during conversion and reintroduced a newline into the HTTP header stream. The flaw was fixed by checking for CR/LF after byte conversion, while broader mitigations across both cases include rejecting or sanitizing carriage return and line feed characters, avoiding validation before transformation, and relying on modern platform protections that enforce stricter header handling.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
9 events from the most recent confirmed update back to the earliest known activity.
On 2023-06-12, MBSD published an analysis of CVE-2018-1067 explaining how Undertow's pre-conversion CR/LF validation could be bypassed through Java char-to-byte truncation, enabling HTTP header injection.
On 2015-07-30, MBSD published research describing how folded HTTP headers and Internet Explorer parsing discrepancies could enable HTTP header injection, response splitting, and possible JavaScript execution when applications reflect untrusted input into headers.
PHP changed header handling in versions 5.4.38, 5.5.22, and 5.6.6 in February 2015 to reject headers containing LWS, closing off an RFC-compliant but dangerous path to header injection.
The author reported Internet Explorer's non-compliant handling of folded headers to Microsoft as a vulnerability in October 2014, but Microsoft responded that it would not fix the issue.
RFC 7230 was released in 2014 and replaced LWS folding with the obsolete term "obs-fold," stating that senders generally must not emit HTTP messages containing it.
ONsec Lab discussed a PHP multiple-header bypass using LWS in a 2012 blog post, highlighting that valid folded header syntax could be abused for header injection in some environments.
In 2012, PHP fixed a CR-related header injection bug, including PHP bug #60227, after it was found that PHP did not treat a lone carriage return as a dangerous separator even though multiple browsers did.
Undertow fixed CVE-2018-1067 by moving CR/LF checks to occur after char-to-byte conversion, preventing attackers from using multibyte characters that truncate to newline bytes to inject HTTP headers.
RFC 2616 defined Linear White Space (LWS) and allowed HTTP header values to be folded across multiple lines, a behavior later implicated in header injection issues when implementations parsed it inconsistently.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
5 references tracked. Mallory keeps watching after this page renders.
mbsd.jp
Open sourcembsd.jp
Open sourcembsd.jp
Open sourcetools.ietf.org
Open sourcetools.ietf.org
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.