REDHAT-BUG-2541803: High severity maven/io.netty/netty-codec-http vulnerability
Netty (io.netty:netty-codec-http) contains an unbounded per-connection queue growth flaw in HttpServerCodec. The codec tracks the HTTP method of each still-unanswered pipelined request; the first 32 entries are bit-packed into a single long, but every additional entry is appended to methodOverflowQueue, an ArrayDeque with no size limit and no rejection path. A remote, unauthenticated attacker who pipelines HTTP/1.1 requests on a single connection while withholding reads on their own end (preventing responses from being flushed) can grow this queue without bound, causing unbounded heap growth and denial of service. Affected versions are 4.2.0.Final through 4.2.17.Final and all releases up to and including 4.1.137.Final; the issue is fixed in 4.2.18.Final and 4.1.138.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.18.Final - Upgrade
Upgrade
io.netty:netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.1.138.Final
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service condition?
Deployments using io.netty:netty-codec-http with affected Netty versions are exposed when they accept HTTP/1.1 connections and allow clients to pipeline requests. The vulnerable component is HttpServerCodec.
What must an attacker do to trigger the issue?
An unauthenticated remote attacker must send pipelined HTTP/1.1 requests over one connection and avoid reading responses. Preventing response flushing allows the per-connection methodOverflowQueue to grow without bound.
Are normal request volumes sufficient to trigger the unbounded queue?
The overflow queue is used after the first 32 still-unanswered pipelined requests, which are tracked in a packed long. Continued pipelining while responses remain unflushed can then cause unbounded heap growth.
Which versions contain the fix?
The issue is fixed in Netty 4.2.18.Final and 4.1.138.Final. Affected releases include 4.2.0.Final through 4.2.17.Final and all releases up to and including 4.1.137.Final.