CVE-2026-142443: Io.netty/netty-codec-http: netty: unbounded http header accumulation across spdy headers frames in spdyhttpdecoder
A flaw was found in netty-codec-http. A remote, unauthenticated attacker could cause a Denial of Service (DoS) by exhausting system memory. By opening a connection and continuously sending request header frames, an attacker forces the component to buffer incoming header data without enforcing size or count limits. This unbounded allocation causes memory usage to grow until the application encounters an out-of-memory error and crashes.
Other sources
SpdyHttpDecoder in netty-codec-http buffers an in-progress request when it receives a non-final SYNSTREAM, 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, RSTSTREAM, 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.
— Red Hat
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.19.Final - Upgrade
Upgrade
io.netty:netty-codec-httpto a version that resolves this vulnerability.Fixed in 4.1.139.Final
Event History
Frequently Asked Questions
What access does an attacker need to trigger the denial of service?
An attacker needs only network access to the affected application. Exploitation does not require authentication, user interaction, or more than a single stream on a single connection.
Which traffic pattern causes memory to grow without bound?
The attacker opens a stream with a non-final SYN_STREAM and repeatedly sends non-final HEADERS frames on that stream. The decoder appends each frame's headers to the buffered in-progress request without cumulative limits on frame count, header count, or retained header size.
Does the configured maxContentLength limit prevent this attack?
No. maxContentLength applies only to the DATA/body path, so a stream carrying only HEADERS frames is not bounded by that check.
When is the retained header data released?
The buffered message is released only when a final frame arrives, the stream receives RST_STREAM, a DATA overflow occurs, or the channel closes. An attacker can avoid these conditions by continually sending non-final HEADERS frames.