Introduction
An unauthenticated peer that only opens HTTP/2 connections and keeps changing a single SETTINGS value could push a Netty-based server into java.lang.OutOfMemoryError, without ever sending a request. In CVE-2026-142450 the memory growth happens before any stream exists, so request-level limits and application authentication never get a chance to intervene.
Netty is an asynchronous network application framework for building protocol servers and clients, distributed under the Apache License 2.0. Its official adopters page lists projects such as Apache ActiveMQ Artemis (messaging), Apache BookKeeper (append-optimized storage) and Apache Dubbo (RPC). The cited material does not give a market share or deployment count. Because Netty sits underneath many Java services and vendor products, a flaw in its HTTP/2 codec flows into downstream products, including several Red Hat offerings.
Red Hat, acting as CNA, scores the issue CVSS 3.1 7.5 (High) and rates it Important, with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. NVD has not yet provided its own assessment. The weakness is classified as CWE-770, Allocation of Resources Without Limits or Throttling.
Technical information
Root cause: a buffer that only drains on outbound headers
The affected component is the Netty HTTP/2 codec (io.netty:netty-codec-http2). The problem lies in a small piece of HPACK bookkeeping that was allowed to grow without bound. Oversized request bodies and header lists play no part.
When a peer sends a SETTINGS frame that changes SETTINGS_HEADER_TABLE_SIZE, the local HPACK encoder has to tell the peer's decoder about the new dynamic table size. In vulnerable versions, DefaultHttp2HeadersEncoder handled this by encoding a dynamic table size update of up to 6 bytes into a separate heap buffer named tableSizeChangeOutput, created with Unpooled.buffer(). This is the relevant pre-patch code, taken from the removed lines in the fix commit:
private ByteBuf tableSizeChangeOutput; // inside encodeHeaders() if (tableSizeChangeOutput != null && tableSizeChangeOutput.isReadable()) { buffer.writeBytes(tableSizeChangeOutput); tableSizeChangeOutput.clear(); } public void maxHeaderTableSize(long max) throws Http2Exception { if (tableSizeChangeOutput == null) { tableSizeChangeOutput = Unpooled.buffer(); } hpackEncoder.setMaxHeaderTableSize(tableSizeChangeOutput, max); }
And inside HpackEncoder, each call wrote the update immediately:
public void setMaxHeaderTableSize(ByteBuf out, long maxHeaderTableSize) throws Http2Exception { // ... this.maxHeaderTableSize = maxHeaderTableSize; ensureCapacity(0); encodeInteger(out, 0x20, 5, maxHeaderTableSize); }
Three properties combine into the vulnerability:
tableSizeChangeOutputhad no capacity limit and could grow indefinitely.- Updates were never coalesced. Every SETTINGS change produced a new encoded update, even if the size moved back and forth.
- The buffer was copied out and cleared only when the local endpoint encoded a HEADERS or PUSH_PROMISE block. If no request ever arrives, the server never writes headers, and the buffer is retained for the lifetime of the connection.
The Red Hat bug report explicitly describes the triggering SETTINGS frames as protocol legal. Nothing about the attacker's traffic is malformed.
Why this departs from RFC 7541
RFC 7541 Section 4.2 says that when the maximum dynamic table size changes several times between header blocks, the encoder signals the smallest maximum size reached and then the final maximum size, so there are at most two updates, placed at the start of the next header block. Netty's vulnerable implementation instead retained every intermediate change. The patch commit message makes the same observation: the separate buffer did nothing useful, because its bytes were never written until the next headers were encoded anyway.
Attack preconditions
- Network access: the endpoint accepts HTTP/2 connections from untrusted peers.
- Transport: TLS with ALPN
h2, orh2cwith prior knowledge. - Authentication: none beyond establishing the HTTP/2 connection.
- Application activity: no stream or request needs to be opened.
- Resource consumed: server heap.
Attack flow
Based on the bug report, the exploitation pattern is:
- The attacker opens an HTTP/2 connection to the server (TLS ALPN
h2orh2cprior knowledge). - The attacker sends a stream of valid SETTINGS frames, each changing
SETTINGS_HEADER_TABLE_SIZE. - For every change, the server appends an encoded table size update of up to 6 bytes to
tableSizeChangeOutput. - The attacker never opens a stream or sends a request, so the server never encodes a HEADERS or PUSH_PROMISE block and the buffer is never drained.
- The attacker repeats this across one or many connections, which can be left idle while still holding their accumulated buffers.
- The JVM heap fills and the server throws
java.lang.OutOfMemoryError, producing denial of service.
Reported test results
The Red Hat Bugzilla report states that default-configured servers reached java.lang.OutOfMemoryError after roughly 230 MiB of SETTINGS traffic, within seconds when the heap was small, and that many idle connections can retain most of the heap indefinitely. This is a reported test outcome, not a universal threshold for every deployment.
The same report notes that configuring stream limits, header list limits and control frame queue limits did not prevent the growth. That follows directly from the root cause: the state accumulates before any stream or header list exists, and SETTINGS processing is not gated by those controls. The documented impact is availability only. The record does not describe code execution or data exposure.
Patch information
Netty fixed the issue upstream in 4.1.139.Final and 4.2.19.Final, both released on 6 October 2026. Red Hat's tracker lists these two versions as patched and points to the upstream advisory GHSA-2p3h-phr9-jf38. Both Netty release announcements list that advisory as an "unbounded resource consumption" fix in the HTTP/2 codec. The release notes do not carry a CVE number because, as Netty explains, no CVE IDs were assigned in time for the release.
The code change is commit 9f49687, titled "HTTP/2: Limit buffered memory for table size changes", written by Eric Anderson and committed by Norman Maurer on the release date. Rather than buffering encoded bytes per update, the encoder now keeps a small, fixed amount of state.
1. The extra buffer is removed from DefaultHttp2HeadersEncoder
The tableSizeChangeOutput field, the copy in encodeHeaders(), and the cleanup in close() are deleted. The SETTINGS handler now just forwards the value:
public void maxHeaderTableSize(long max) throws Http2Exception { hpackEncoder.setMaxHeaderTableSize(max); }
2. HpackEncoder records changes instead of writing them
setMaxHeaderTableSize() no longer takes a ByteBuf and no longer writes anything. It sets a pending flag and tracks the smallest size seen since the last header block:
private boolean pendingHeaderTableSizeUpdate; private long pendingMinHeaderTableSize = Long.MAX_VALUE; public void setMaxHeaderTableSize(long maxHeaderTableSize) throws Http2Exception { // ... this.pendingHeaderTableSizeUpdate = true; this.pendingMinHeaderTableSize = Math.min(this.pendingMinHeaderTableSize, maxHeaderTableSize); this.maxHeaderTableSize = maxHeaderTableSize; ensureCapacity(0); }
3. At most two updates are written at the start of the next header block
if (this.pendingHeaderTableSizeUpdate) { this.pendingHeaderTableSizeUpdate = false; if (this.pendingMinHeaderTableSize < this.maxHeaderTableSize) { // The table size shrunk and increased again. encodeInteger(out, 0x20, 5, this.pendingMinHeaderTableSize); } this.pendingMinHeaderTableSize = Long.MAX_VALUE; encodeInteger(out, 0x20, 5, this.maxHeaderTableSize); }
If the table shrank and then grew again, the encoder emits the minimum size first and then the final size. Otherwise, it emits only the final size.
Why this closes the hole
The minimum value is the one that matters for correctness. It tells the peer's decoder to evict entries the same way the encoder already did when the table shrank. After that, only the final size is needed. Emitting "minimum, then final" keeps both tables in sync regardless of how many SETTINGS frames arrived in between, which is exactly the RFC 7541 Section 4.2 behavior.
Storage per connection is now one boolean and one long, independent of how many SETTINGS frames a peer sends. Repeated SETTINGS frames overwrite the same fields, and each pending value is reset after it is written, so a stale minimum is not reused in a later round.
Tests and API ripple
- A new
testMultipleTableResizeinHpackEncoderTestchecks coalescing byte for byte:- Two decreases in a row (2000, then 1000) produce a single update for 1000.
- Changes of 800, 67, 500, then 1000 produce exactly two updates (67, then 1000), and the entry evicted at the 67-byte size is sent again as a literal.
- A later resize does not reuse the old minimum.
- Because the package-private
HpackEncoder.setMaxHeaderTableSize()lost itsByteBufparameter, the test helpersHpackTestCaseandHttp2TestUtil, plusHpackUtilBenchmark, were updated to callencodeHeaders(...)with an empty header set to flush the pending update. - In total the commit adds 60 lines and removes 31.
Remediation notes
- Move to 4.1.139.Final or 4.2.19.Final as appropriate for your branch.
- Being patched for the separate HpackEncoder large-table issue, CVE-2026-93492 (fixed in 4.1.138.Final and 4.2.18.Final), does not fix this flaw. Those versions remain affected here.
- Stream limits, header list limits and control frame queue limits were reported as ineffective, so they are not a substitute for the fix.
- Red Hat states that a mitigation is either unavailable or does not meet its criteria for ease of deployment, applicability or stability. Its advisory does not map the upstream fix to specific product build numbers, so track each affected product's update separately.
Affected systems and versions
Upstream Netty HTTP/2 codec, when accepting HTTP/2 connections (TLS ALPN h2 or h2c prior knowledge) from untrusted peers:
- 4.1 branch: all versions up to and including 4.1.138.Final are affected. Fixed in 4.1.139.Final.
- 4.2 branch: 4.2.0.Final through 4.2.18.Final, inclusive, are affected. Fixed in 4.2.19.Final.
Red Hat product statuses recorded in the CVE record (product classifications, not proof that every installation exposes a vulnerable HTTP/2 listener):
Affected
- Red Hat build of Apache Camel for Spring Boot 4
- Red Hat build of Apicurio Registry 3
- Red Hat build of Debezium 3
- Red Hat Build of Keycloak
- Red Hat Data Grid 8
- Red Hat OpenShift AI
- Red Hat OpenShift Dev Spaces
- Streams for Apache Kafka 3
Unaffected
- OpenShift Serverless
- Red Hat AMQ Broker 7
- Red Hat build of Apache Camel 4 for Quarkus 3
- Red Hat build of Quarkus
The Camel build for Quarkus and the Camel build for Spring Boot have different statuses, so product family names alone are not a reliable exposure signal. The CVE record also contains an entry literally named "Exploit Intelligence" marked affected within product status data. It is a product label, not an exploitation report.
Exploitation status
The reviewed sources do not establish active exploitation, a campaign, or a named threat actor. Rapid7 reports the CVE is not listed in CISA KEV and shows EPSS as N/A. VulDB also records KEV as no. Feedly carries a VulDB statement that no exploit exists, which reflects the tracker's knowledge rather than proof that private exploits do not exist. The Bugzilla test case does demonstrate technical feasibility under the reported conditions.
Vendor security history
Netty's security policy describes volunteer maintenance on a reasonable-effort basis, asks for private vulnerability reports, and requests 90 days to remediate before disclosure. Its support list, dated September 2025, covers the 4.1 and 4.2 branches, with 3.x and 4.0 at end of support.
This CVE is the latest in a series of HTTP/2 resource exhaustion issues in Netty, each with a different mechanism and a different fixed baseline:
- HTTP/2 Rapid Reset: addressed in 4.1.100.Final (October 10, 2023) by adding default protection limiting how many RST frames a peer can send within a time window.
- CVE-2025-55163 (MadeYouReset): malformed control frames induce server resets and bypass concurrent stream limits. Fixed in 4.1.124.Final and 4.2.4.Final.
- CVE-2026-93492: the HpackEncoder retains unique outgoing headers when a client advertises a very large table size. Fixed in 4.1.138.Final and 4.2.18.Final.
- CVE-2026-142450: unbounded pending table size update buffer driven by repeated SETTINGS changes with no requests. Fixed in 4.1.139.Final and 4.2.19.Final.
"Patched for HTTP/2 DoS" is not a meaningful statement on its own. RST rate limits and the CVE-2026-93492 fix target different code paths, and Netty's own threat model expects codecs to apply sensible CPU and memory limits per resource path. Verify the exact fixed version for each specific issue.
References
- NVD: CVE-2026-142450
- CVE Record: CVE-2026-142450
- Red Hat Customer Portal: CVE-2026-142450
- Red Hat Bugzilla 2588742
- Netty commit 9f49687: HTTP/2: Limit buffered memory for table size changes
- Netty commit 9f49687 (GitHub API)
- Netty 4.1.139.Final release notes
- Netty 4.2.19.Final release notes
- RFC 7541: HPACK, Header Compression for HTTP/2
- Netty Security Advisories
- Netty advisory: HTTP/2 HpackEncoder DoS with large table size (CVE-2026-93492)
- GitHub Advisory: MadeYouReset, CVE-2025-55163
- Netty 4.1.100.Final release notes (Rapid Reset)
- Netty Security Policy
- Netty Threat Model
- Netty Adopters
- Netty Home
- Netty News
- Netty 4.1.140.Final release notes
- CISA Known Exploited Vulnerabilities Catalog
- OpenCVE: CVE-2026-142450
- VulDB: CVE-2026-142450
- Feedly: CVE-2026-142450
- Rapid7 Vulnerability Database: CVE-2026-142450



