Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion
Published 22 Jul 2026 · Updated 10 Sept 2026
Is your project on an affected io.netty:netty-codec-http?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=4.2.0.Final <4.2.16.Final
- Fixed in
- 4.2.16.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http -DdepVersion=4.2.16.Final -DforceVersion=true- Affected
- >=4.1.0.Final <4.1.136.Final
- Fixed in
- 4.1.136.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http -DdepVersion=4.1.136.Final -DforceVersion=trueDetails
The SpdyHttpDecoder handler in Netty's SPDY-to-HTTP codec allocates a pooled ByteBuf when processing a client-initiated SYN_STREAM frame with FLAG_FIN=0, storing the partially-constructed FullHttpRequest in an internal map (messageMap) to accumulate subsequent DATA frames. When the remote peer sends an RST_STREAM for that stream, or when the accumulated content exceeds maxContentLength, the decoder removes the entry from the map but never releases the pooled ByteBuf, permanently leaking the allocated memory.
Is GHSA-jppx-w49h-x2qq in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected io.netty:netty-codec-http, and gives you the command that fixes it.
More advisories for io.netty:netty-codec-http
- MediumCVE-2026-59903Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite · 17 Aug 2026
- MediumCVE-2026-59921Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder · 22 Jul 2026
- MediumCVE-2026-59899Netty: [HttpContentEncoder] Unbounded Per-Connection Queue Growth via HTTP/1.1 Pipelining Leads to Denial of Service · 22 Jul 2026
- MediumCVE-2026-59898Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation · 22 Jul 2026
- MediumCVE-2026-56746Netty: Security Control Bypass via CORS Short-Circuit Failure · 22 Jul 2026
- HighCVE-2026-55833Netty SPDY zlib header block continues decoded expansion after maxHeaderSize truncation · 22 Jul 2026
References
- Linkgithub.com/netty/netty/security/advisories/GHSA-jppx-w49h-x2qq
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-56745
- Linkgithub.com/netty/netty/commit/5b68c61f37aa4a3045cba624cbea239655c9003b
- Linkgithub.com/netty/netty/commit/bb2ff68a1fb71cb4b0eb9a9e17b66c52aff680c6
- Packagegithub.com/netty/netty
- Linkgithub.com/netty/netty/releases/tag/netty-4.1.136.Final
- Linkgithub.com/netty/netty/releases/tag/netty-4.2.16.Final
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.