chore: update dependency io.netty:netty-codec-http2 to v4.2.13.final [security]#7107
Closed
seqeralabs-renovate[bot] wants to merge 1 commit intomasterfrom
Closed
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
c4fdebc to
791e4d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.1.132.Final→4.2.13.FinalWarning
Some dependencies could not be looked up. Check the warning logs for more information.
Netty HTTP/2 CONTINUATION Frame Flood DoS via Zero-Byte Frame Bypass
CVE-2026-33871 / GHSA-w9fj-cfpg-grvv
More information
Details
Summary
A remote user can trigger a Denial of Service (DoS) against a Netty HTTP/2 server by sending a flood of
CONTINUATIONframes. The server's lack of a limit on the number ofCONTINUATIONframes, combined with a bypass of existing size-based mitigations using zero-byte frames, allows an user to cause excessive CPU consumption with minimal bandwidth, rendering the server unresponsive.Details
The vulnerability exists in Netty's
DefaultHttp2FrameReader. When an HTTP/2HEADERSframe is received without theEND_HEADERSflag, the server expects one or more subsequentCONTINUATIONframes. However, the implementation does not enforce a limit on the count of theseCONTINUATIONframes.The key issue is located in
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java. TheverifyContinuationFrame()method checks for stream association but fails to implement a frame count limit.Any user can exploit this by sending a stream of
CONTINUATIONframes with a zero-byte payload. While Netty has amaxHeaderListSizeprotection to limit the total size of headers, this check is never triggered by zero-byte frames. The logic effectively evaluates tomaxHeaderListSize - 0 < currentSize, which will not trigger the limit until a non-zero byte is added. As a result, the server is forced to process an unlimited number of frames, consuming a CPU thread and monopolizing the connection.codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.javaverifyContinuationFrame()(lines 381-393) — No frame count check:HeadersBlockBuilder.addFragment()(lines 695-723) — Byte limit bypassed by 0-byte frames:When
len=0:maxGoAway - 0 < readableBytes→10240 < 1→ FALSE. The byte limit is never triggered.Impact
This is a CPU-based Denial of Service (DoS). Any service using Netty's default HTTP/2 server implementation is impacted. An unauthenticated user can exhaust server CPU resources and block legitimate users, leading to service unavailability. The low bandwidth requirement for the attack makes it highly practical.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: HttpContentDecompressor maxAllocation bypass when Content-Encoding set to br/zstd/snappy leads to decompression bomb DoS
CVE-2026-42587 / GHSA-f6hv-jmp6-3vwv
More information
Details
Summary
HttpContentDecompressoraccepts amaxAllocationparameter to limit decompression buffer size and prevent decompression bomb attacks. This limit is correctly enforced for gzip and deflate encodings viaZlibDecoder, but is silently ignored when the content encoding isbr(Brotli),zstd, orsnappy. An attacker can bypass the configured decompression limit by sending a compressed payload withContent-Encoding: brinstead ofContent-Encoding: gzip, causing unbounded memory allocation and out-of-memory denial of service.The same vulnerability exists in
DelegatingDecompressorFrameListenerfor HTTP/2 connections.Details
HttpContentDecompressorstores themaxAllocationvalue at construction time (HttpContentDecompressor.java:89) and uses it innewContentDecoder()to create the appropriate decompression handler.For gzip/deflate,
maxAllocationis forwarded toZlibCodecFactory.newZlibDecoder():ZlibDecoder.prepareDecompressBuffer()enforces this as a hard cap by setting the buffer'smaxCapacityand throwingDecompressionExceptionwhen the limit is reached:For brotli, zstd, and snappy, the decoders are created without any size limit:
BrotliDecoderhas nomaxAllocationparameter at all — there is no way to constrain its output. It streams decompressed data in chunks viafireChannelReadwith no total limit.ZstdDecoder()defaults to a 4MBmaximumAllocationSize, but this only constrains individual buffer allocations, not total output. The decode loop (ZstdDecoder.java:100-114) creates new buffers and fireschannelReadrepeatedly, so total decompressed output is unbounded.The identical pattern exists in
DelegatingDecompressorFrameListener.newContentDecompressor()at lines 188-210 for HTTP/2.PoC
Content-Encoding: zstdandContent-Encoding: snappy.Impact
maxAllocationfor decompression bomb protection, by simply using a non-gzip content encoding.maxAllocationto protect against decompression bombs are not actually protected for brotli, zstd, or snappy encodings. The API documentation implies all encodings are covered.Content-Encoding: brinstead ofContent-Encoding: gzip) to circumvent the protection entirely.HttpContentDecompressor(HTTP/1.1) andDelegatingDecompressorFrameListener(HTTP/2).Recommended Fix
Pass
maxAllocationto all decoder constructors. ForBrotliDecoder, which currently has nomaxAllocationsupport, add the parameter:HttpContentDecompressor.java — pass maxAllocation to all decoders:
DelegatingDecompressorFrameListener.java — same fix at lines 188-210.
BrotliDecoder — add
maxAllocationparameter with the same semantics asZlibDecoder.prepareDecompressBuffer(): set buffer maxCapacity and throwDecompressionExceptionwhen the total decompressed output exceeds the limit.SnappyFrameDecoder — add
maxAllocationparameter with equivalent enforcement.ZstdDecoder — ensure that when
maxAllocationis set, total output across all buffers is bounded (not just per-buffer allocation size).Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.