netty-codec-http2: ByteBuf Reference-Count Leak in DelegatingDecompressorFrameListener Leads to Memory Exhaustion
Published 11 Jun 2026 · Updated 6 Oct 2026
Is your project on an affected io.netty:netty-codec-http2?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <4.1.135.Final
- Fixed in
- 4.1.135.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http2 -DdepVersion=4.1.135.Final -DforceVersion=true- Affected
- >=4.2.0.Alpha1 <4.2.15.Final
- Fixed in
- 4.2.15.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http2 -DdepVersion=4.2.15.Final -DforceVersion=trueDetails
Impact
The DelegatingDecompressorFrameListener class orchestrates HTTP/2 decompression by embedding a per-stream EmbeddedChannel that runs the appropriate decompression codec (gzip, deflate, zstd) and forwards decompressed chunks to a wrapped listener. Each decompressed chunk is a pooled ByteBuf handed to an anonymous ChannelInboundHandlerAdapter tail handler, which becomes the sole owner responsible for releasing it.
A remote peer could send frames that would result in the flow-controller throwing and so trigger a resource leak which at the end might take down the whole JVM due OOME.
Is GHSA-c2gf-v879-257j 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-http2, and gives you the command that fixes it.
More advisories for io.netty:netty-codec-http2
- HighCVE-2026-56819Netty: HTTP/2 decompression leaks ByteBuf reference count when the decompressor channel is already closed (Direct memory leak / OOM DoS) · 31 Jul 2026
- MediumCVE-2026-59900Netty: [codec-http2] Lack of Host Header Deduplication in HTTP/2→HTTP/1.x Translation Leads to Request Routing Bypass · 22 Jul 2026
- MediumCVE-2026-50560Netty susceptible to HTTP/2 Reset Attack with different on-the-wire signature · 15 Jun 2026
- MediumCVE-2026-47244Netty HTTP/2: Advertised MAX_CONCURRENT_STREAMS are not enforced · 8 Jun 2026
- HighCVE-2026-42587Netty: HttpContentDecompressor maxAllocation bypass when Content-Encoding set to br/zstd/snappy leads to decompression bomb DoS · 7 May 2026
- HighCVE-2026-33871Netty HTTP/2 CONTINUATION Frame Flood DoS via Zero-Byte Frame Bypass · 26 Mar 2026
References
- Linkgithub.com/netty/netty/security/advisories/GHSA-c2gf-v879-257j
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-48043
- Linkgithub.com/netty/netty/commit/db6138b168699736a6463c367e12ad0a4c36a25e
- Linkgithub.com/netty/netty/commit/3d45a1e4e8eb99144f716e54be5ac57e525fa7ca
- Linksecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48043.json
- Linkgithub.com/netty/netty/releases/tag/netty-4.2.15.Final
- Linkgithub.com/netty/netty/releases/tag/netty-4.1.135.Final
- Packagegithub.com/netty/netty
- Linkbugzilla.redhat.com/show_bug.cgi?id=2488442
- Linkaccess.redhat.com/security/cve/CVE-2026-48043
- Linkaccess.redhat.com/errata/RHSA-2026:66488
- Linkaccess.redhat.com/errata/RHSA-2026:65126
- Linkaccess.redhat.com/errata/RHSA-2026:54435
- Linkaccess.redhat.com/errata/RHSA-2026:53806
- Linkaccess.redhat.com/errata/RHSA-2026:53646
- Linkaccess.redhat.com/errata/RHSA-2026:53645
- Linkaccess.redhat.com/errata/RHSA-2026:53644
- Linkaccess.redhat.com/errata/RHSA-2026:50085
- Linkaccess.redhat.com/errata/RHSA-2026:48151
- Linkaccess.redhat.com/errata/RHSA-2026:48124
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.