REDHAT-BUG-2541863: High severity maven/io.netty/netty-codec-http vulnerability
Netty (io.netty:netty-codec-http) versions up to and including 4.1.137.Final and from 4.2.0.Final through 4.2.17.Final accept an unlimited number of concurrent remote-initiated SPDY streams: SpdySessionHandler defaults localConcurrentStreams to Integer.MAXVALUE and exposes no API to change it. A remote peer that opens a SPDY connection and sends millions of SYNSTREAM frames with FLAGFIN=0 causes the server to allocate unbounded heap and direct memory, eventually triggering a JVM OutOfMemoryError and crashing the service. Fixed in 4.1.138.Final and 4.2.18.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.1.138.Final - Upgrade
Upgrade
io.netty:netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.2.18.Final
Event History
Frequently Asked Questions
Which deployments are exposed?
Servers using netty-codec-http with SPDY connections are exposed if they run versions up to and including 4.1.137.Final, or versions from 4.2.0.Final through 4.2.17.Final. The issue is triggered by a remote peer initiating SPDY streams.
What does an attacker need to do to cause impact?
An attacker needs to establish a SPDY connection and send millions of SYN_STREAM frames without FLAG_FIN set. This creates concurrent remote-initiated streams until heap and direct memory are exhausted, potentially crashing the JVM.
Is the default configuration affected?
Yes. SpdySessionHandler defaults localConcurrentStreams to Integer.MAX_VALUE, and the affected implementation provides no API to reduce that limit.
How can I determine whether an application is affected?
Check the resolved version of io.netty:netty-codec-http used by the application. Versions up to 4.1.137.Final and 4.2.0.Final through 4.2.17.Final are affected; 4.1.138.Final and 4.2.18.Final contain the fix.