Fedora Account System
Red Hat Associate
Red Hat Customer
SpdyHttpDecoder in netty-codec-http buffers an in-progress request when it receives a non-final SYN_STREAM, and it appends the headers from every later non-final HEADERS frame on that stream to the buffered message. It applies no cumulative limit to the number of HEADERS frames, the number of header entries, or the total retained header size. The only length check, maxContentLength, covers the body (DATA) path, so a stream that sends only headers is never bounded. The buffered message is released only on a final frame, RST_STREAM, a DATA overflow, or channel close, and an attacker is not required to send any of these. A remote, unauthenticated attacker can open a single stream on a single connection and send an unbounded series of non-final HEADERS frames. The retained headers grow for the lifetime of the connection and cannot be garbage-collected. Because SPDY header blocks are zlib-compressed, a small amount of transmitted data can expand to up to roughly maxHeaderSize (16 KiB by default) of retained data per frame. This leads to OutOfMemoryError and denial of service for the whole JVM process. Only applications that enable the Netty SPDY codec are affected, namely those using SpdyHttpDecoder in a pipeline with SpdyFrameCodec and SpdySessionHandler. This affects io.netty:netty-codec-http 4.2.0.Final through 4.2.18.Final, fixed in 4.2.19.Final, and 4.1.138.Final and earlier, fixed in 4.1.139.Final. Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <=4.1.138.Final Patched versions: 4.2.19.Final; 4.1.139.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5) CWE: CWE-400 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-x436-m93c-g2q9 CVE requested by the Netty Project via PSIRTSUPT-32166.