CVE-2026-42585: The Netty framework allows hidden HTTP request injection via the Transfer-Encoding header

A flaw in HTTP header handling was discovered in the Netty framework, allowing the frontend proxy and backend to be desynchronized over HTTP/1, contrary to Section 6.1 of RFC 9112. The vulnerability occurs when the chunked value in the Transfer-Encoding header is not listed last (for example, Transfer-Encoding: chunked, identity). The HttpUtil.isTransferEncodingChunked method checks only whether chunked is present among the comma-separated values, regardless of its position, and returns true. As a result, HttpObjectDecoder.readHeaders0 switches the parser to the State.READ_CHUNK_SIZE state to read chunked data, while the proxy determines the end of the request using Content-Length, causing Netty to interpret the remaining bytes as a new request.
In practice, an attacker can send a POST request with this header and Content-Length: 65, hiding a GET /admin/users request inside the body. The proxy counts 65 bytes and forwards the data, while Netty, upon reaching the chunk terminator 0\r\n\r\n, treats the injected GET as a separate client request. As a result, it inherits the context of the previous connection: authentication, the IP allowlist, the mutual TLS identity (mTLS identity), and the rate-limit bucket.
The fix in commit 485f11d322 checks the last value of the Transfer-Encoding header and verifies that it ends with chunked. If it does not, the decoder throws an IllegalArgumentException; the unit test testChunkedNotLastInTransferEncoding verifies that such a request is rejected. The fix was included in Netty versions 4.1.133.Final and 4.2.13.Final. However, Netty itself does not generate an HTTP response with status 400; the error is raised as a DecoderException, while sending the response and closing the connection depend on the application layer.
Vulnerabilities
Vendors
Products