CVE-2026-142454: Io.netty/netty-codec-http: netty: http/1 request-line http-version boundary control bytes are silently normalized
A flaw was found in netty-codec-http. A remote attacker can exploit this issue by sending HTTP (Hypertext Transfer Protocol) requests containing leading control characters in the request line. Because the component improperly trims these control characters prior to validation, malformed requests are decoded as valid traffic. This parsing difference between Netty and upstream security devices can result in HTTP request smuggling, allowing attackers to bypass security filters or manipulate request routing.
Other sources
Netty's HttpRequestDecoder accepts a malformed HTTP/1 request line in which the HTTP-version token is preceded by a control byte, such as NUL. The decoder validates the version strictly, but HttpVersion.valueOf first trims the token with String.trim(). That call removes any leading or trailing characters with code points of 0x20 or below, including NUL and other C0 control characters. A token like \x00HTTP/1.1 is therefore normalized to HTTP/1.1 before the strict format check, and the request is decoded successfully as ordinary HTTP/1.1.
This creates an HTTP request parsing differential (request smuggling class). A front-end proxy, gateway, WAF or other backend that rejects or interprets such a request line differently from Netty can disagree with a Netty hop about how the request should be handled. An attacker who can get malformed request-line bytes forwarded to Netty may be able to undermine request validation or routing decisions made upstream.
Affected are users of netty-codec-http that decode HTTP/1 requests with HttpRequestDecoder, particularly where Netty sits behind another HTTP component that does not normalize or reject such bytes in the same way. Affected versions are 4.2.13.Final up to but not including 4.2.16.Final, and 4.1.132.Final and later in the 4.1 line before 4.1.136.Final. The issue is fixed in 4.2.16.Final and 4.1.136.Final.
Affected versions: >= 4.2.13.Final, < 4.2.16.Final; >= 4.1.132.Final, < 4.1.136.Final Patched versions: 4.2.16.Final; 4.1.136.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (5.3) CWE: CWE-444 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-h2h2-c23p-h5f6 CVE requested by the Netty Project via PSIRTSUPT-32166.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Io.netty/netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.2.16.Final - Upgrade
Upgrade
Io.netty/netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.1.136.Final
Event History
Frequently Asked Questions
Which deployments are exposed to request smuggling through this issue?
Deployments using netty-codec-http to parse HTTP/1 requests may be exposed when a front-end proxy, gateway, WAF, or other intermediary handles the malformed request line differently from Netty. The relevant differential occurs when the intermediary rejects a control byte before the HTTP-version token but Netty accepts it after normalization.
What must an attacker send to trigger the parsing discrepancy?
An attacker can send an HTTP/1 request whose HTTP-version token begins with a leading C0 control character, such as NUL. For example, Netty normalizes a token like \x00HTTP/1.1 to HTTP/1.1 before strict version validation.
What is the practical impact of a successful exploit?
The parsing difference can enable HTTP request smuggling. An attacker may bypass security filters or manipulate request routing when upstream security infrastructure and the Netty backend disagree about whether the request is valid.