REDHAT-BUG-2541907: High severity maven/io.netty/netty-codec-http vulnerability
Netty's HttpServerCodec (io.netty:netty-codec-http) in versions 4.2.0.Final through 4.2.16.Final and in versions up to and including 4.1.136.Final pairs each outbound response with an inbound request by calling pollMethod() once per response, including for 1xx informational responses. If a client pipelines an HTTP/1.1 GET carrying an Expect: 100-continue header followed by a HEAD request, the 100 Continue response consumes the queued GET method, so the subsequent 200 OK for the GET is paired with HEAD and its body is dropped, while the following 200 OK for the HEAD request is written with a body. This desynchronizes HTTP parsing on the connection: the GET entity is never delivered and the HEAD response body is interpreted as the GET body, resulting in response splitting and unsafe connection reuse. Fixed in 4.2.17.Final and 4.1.137.Final.
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.17.Final - Upgrade
Upgrade
io.netty:netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.1.137.Final
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using Netty's netty-codec-http HttpServerCodec are affected if they run version 4.2.0.Final through 4.2.16.Final, or version 4.1.136.Final or earlier.
What request pattern is required to trigger the issue?
A client must pipeline an HTTP/1.1 GET request containing an Expect: 100-continue header, followed by a HEAD request, on the same connection. The server's 100 Continue response causes later responses to be paired with the wrong request methods.
How can I determine whether remediation is needed?
Check the version of io.netty:netty-codec-http used by the affected service. Upgrade to 4.2.17.Final or later on the 4.2 line, or 4.1.137.Final or later on the 4.1 line.