Automated Threat Modeling

Brief Summary: Netty SpdyHttpDecoder CVE-2026-142443 Unbounded Header Accumulation Leading to Memory Exhaustion

A brief summary of CVE-2026-142443, an unauthenticated memory exhaustion flaw in Netty's SpdyHttpDecoder. It covers the root cause, the upstream patch, and affected versions.

CVE Analysis

8 min read

Gaurav Sarraf
Gaurav Sarraf

2026-12-02

Brief Summary: Netty SpdyHttpDecoder CVE-2026-142443 Unbounded Header Accumulation Leading to Memory Exhaustion

Introduction

A single connection carrying an unending series of SPDY header frames is enough to drive a vulnerable Netty process into an OutOfMemoryError that takes down the entire JVM, not just one request. CVE-2026-142443 matters for Java services that have SPDY handlers enabled, because an unauthenticated remote peer can grow heap usage without ever completing a request.

Netty is an asynchronous, event-driven framework for building high-performance protocol servers and clients. Its adopters page lists Apple using it for various services, Databricks for an RPC layer, and Netflix projects including Ribbon, RxNetty, and Zuul. Those uses span service infrastructure, RPC, and gateways, which makes Netty a foundational dependency in the Java ecosystem. Adoption alone does not mean a given consumer is exposed to this particular issue.

Red Hat, the CNA, scores the flaw CVSS 3.1 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and rates it Important. NVD marks the record Awaiting Enrichment, so this is the only numerical assessment available. The weakness is classified as CWE-400, Uncontrolled Resource Consumption. The reviewed Red Hat advisory and issue record do not establish exploitation in the wild, a named threat actor, or a public proof of concept. CISA KEV status cannot be conclusively determined, because the retrieved feed metadata (30 November 2026) predates the CVE's publication on 2 December 2026.

Technical information

Root cause: no running total for headers

The affected code is SpdyHttpDecoder in the io.netty:netty-codec-http artifact. When a nonfinal SYN_STREAM arrives, the decoder places a FullHttpMessage into messageMap and waits for the rest of the request. Every later nonfinal HEADERS frame on that stream appends its entries to the buffered message.

In vulnerable versions, nothing tracks how much has been appended across frames. There is no cumulative limit on:

  • the number of HEADERS frames per stream
  • the number of header entries in the buffered message
  • the total retained header size

The resource that runs out is the total retained message state. The size of any single frame is not the problem.

Why the existing limits do not help

Two controls in the vulnerable pipeline sound protective but do not cover this case:

  • maxContentLength protects only the DATA body path. A stream made entirely of headers never reaches it.
  • The per-frame header limit bounds each individual frame. It does not bound accumulation across an unlimited number of frames.

Neither should be treated as a workaround for an affected release.

Attack flow

Based on the Red Hat Bugzilla record, the documented sequence is:

  1. A remote, unauthenticated attacker opens one connection to a service with SPDY handlers enabled.
  2. The attacker opens one stream with a nonfinal SYN_STREAM, which causes the decoder to buffer a partial FullHttpMessage.
  3. The attacker sends an unbounded sequence of nonfinal HEADERS frames on that stream. Each frame's entries are appended to the buffered message.
  4. The attacker never sends a final frame or RST_STREAM and keeps the channel open. The buffered message is released only on a final frame, RST_STREAM, a body overflow, or channel closure, so it stays reachable for the life of the connection and the garbage collector cannot reclaim it.
  5. Because SPDY header blocks are zlib compressed, Red Hat notes that a small amount of transmitted data can expand into roughly maxHeaderSize of retained data per frame, 16 KiB by default. Red Hat gives this as a per-frame figure and does not publish a total amplification ratio.
  6. Heap usage keeps growing until the JVM throws OutOfMemoryError, causing denial of service for the whole process.

The published records do not quantify the elapsed time, traffic volume, or memory threshold needed to crash a particular deployment.

Patch information

Fixed versions: io.netty:netty-codec-http 4.2.19.Final (for 4.2.0.Final through 4.2.18.Final) and 4.1.139.Final (for 4.1.138.Final and earlier). Both were released on 6 October 2026.

Red Hat's tracker for CVE-2026-142443 links the upstream advisory GHSA-x436-m93c-g2q9. Both Netty release announcements list that advisory as an "unbounded resource consumption in io.netty:netty-codec-http" fix, under a placeholder CVE-2026-XXXXX ID. Netty notes that strain on the CVE system meant no CVE numbers were assigned in time for the release. That is why the fix release predates the CVE publication.

The upstream commit

The fix is commit 42c34b6, titled "SpdyHttpDecoder: bound cumulative HEADERS frame size per stream". It shipped in the 4.2 line through PR #17770 ("Bulk merge changes for 4.2", milestone 4.2.19.Final). The 4.1.139.Final notes list the same advisory and a matching "Bulk merge changes for 4.1" (#17771). The 4.1 backport commit was not checked line by line. The commit touches three files: SpdyHttpDecoder.java, SpdyHttpCodec.java, and a new SpdyHttpDecoderTest.java.

What changed, and why it works

The patch adds the missing running total for headers, alongside the existing maxContentLength limit for bodies:

  1. A per-stream byte counter. The decoder gets a new maxHeaderSize field and an IntObjectMap<Long> headerSizeMap keyed by stream ID. It records how many header bytes each buffered stream has collected across all of its HEADERS frames.
  2. A check before each append. Each entry is sized as name.length() + value.length() + 2, where the 2 covers the ": " separator. The decoder tests that size against the limit before it adds the entry to the message:
long entrySize = headerEntrySize(e.getKey(), e.getValue()); if (headerSize > maxHeaderSize - entrySize) { FullHttpMessage removed = removeMessage(streamId); if (removed != null && removed != fullHttpMessage) { removed.release(); } fullHttpMessage.release(); addHeaderSize = false; throw new TooLongHttpHeaderException( "HTTP header size exceeded " + maxHeaderSize + " bytes."); } headerSize += entrySize; fullHttpMessage.headers().add(e.getKey(), e.getValue());

The comparison subtracts entrySize from the limit instead of adding it to the running total, so it cannot overflow even with a very large entry. When the limit is hit, the decoder removes the stream from messageMap, releases the pooled buffer behind the partial request, and throws TooLongHttpHeaderException, a subclass of TooLongFrameException.

Before the patch, the only ways to free a buffered message were events the attacker controlled or could avoid. Now the server frees the memory itself as soon as a stream goes over budget. A finally block stores the new running total only if the limit was not hit, so a rejected stream leaves no counter behind.

  1. Cleanup. removeMessage() now also removes the stream's entry from headerSizeMap, and handlerRemoved() clears the whole map, so the counter is freed on every normal exit path.
  2. Truncated frames. The new accounting sits inside the existing if (!spdyHeadersFrame.isTruncated()) branch. Frames that SpdyFrameCodec has already marked as truncated are still dropped and not counted.

API and defaults

A new protected constructor, SpdyHttpDecoder(SpdyVersion, int maxHeaderSize, int maxContentLength, Map, HttpHeadersFactory, HttpHeadersFactory), takes the limit and validates it with checkPositive. The old constructor now delegates to it with DEFAULT_MAX_HEADER_SIZE = 16384. According to the code comment, this matches the default maxHeaderSize of SpdyFrameCodec. Existing pipelines therefore get the limit just by upgrading, with no code changes. SpdyHttpCodec also gains a new public constructor that accepts maxHeaderSize.

The commit message says the limit mirrors the 8192 default of HttpObjectDecoder, but the shipped code uses 16384. Go by the code.

Regression tests

  • testUnboundedHeaderAccumulationIsRejected opens a nonfinal stream, then sends up to 1,000 nonfinal HEADERS frames of 100 entries each against an 8192-byte limit. It asserts that a TooLongFrameException is thrown and that stream 1 is no longer in messageMap. This proves the buffered request was freed rather than kept for the life of the connection.
  • testHeadersWithinLimitAreAccepted checks that a normal, small trailing HEADERS frame still produces a complete FullHttpMessage.

Behavioral note for upgraders

In a SPDY pipeline, a peer whose combined trailing headers on one stream exceed the limit (16 KiB by default) now triggers an exception, and that stream's partial request is discarded. Applications that legitimately need larger header sets must pass a bigger maxHeaderSize to the new constructors.

Notes on mitigation and downstream products

Red Hat states that mitigation is either unavailable or does not meet its Product Security criteria for ease of use, broad applicability, or stability. That statement concerns workarounds. It does not negate the fixed versions. The reviewed NVD entry does not list product-specific fixed package versions or errata for Red Hat products, so the upstream version mapping alone does not confirm that a given downstream product has been remediated.

Affected systems and versions

Upstream library (io.netty:netty-codec-http):

  • 4.1 line: 4.1.138.Final and earlier are affected. The fix is in 4.1.139.Final.
  • 4.2 line: 4.2.0.Final through 4.2.18.Final are affected. The fix is in 4.2.19.Final.

Vulnerable configuration: Red Hat limits exposure to environments where SPDY protocol handlers are explicitly enabled, meaning SpdyHttpDecoder used together with SpdyFrameCodec and SpdySessionHandler. The presence of netty-codec-http alone does not establish that the vulnerable path is reachable.

Red Hat product assessments (as reproduced in NVD):

  • Listed as affected: Red Hat AMQ Clients; Apache Camel for Spring Boot 4; Apicurio Registry 3; Debezium 3; Red Hat Build of Keycloak; Data Grid 8; JBoss Enterprise Application Platform 8 and its Expansion Pack
  • Listed as unaffected: OpenShift Serverless; AMQ Broker 7; Apache Camel 4 for Quarkus 3; Red Hat build of Quarkus

The affected labels identify products, not confirmed enabled SPDY handlers. Exposure for any specific installation still depends on the SPDY qualification above.

Vendor security history

This is not the first resource accumulation issue in Netty's HTTP codecs. CVE-2024-29025 affected HttpPostRequestDecoder. Chunked POST requests containing many small fields could accumulate, and an individual field could be buffered without bound. It was patched in 4.1.108.Final. The two issues share a pattern but involve different processing paths and different fixes, so the 2024 form decoder fix does not address the SPDY issue. Netty has also published a separate advisory titled Denial of Service via Unbounded HTTP/3 Header Size (GHSA-c2rx-5r8w-8xr2).

Netty's security policy describes a volunteer team working on a reasonable-effort basis. It asks reporters to use the repository Security tab for private reports and to allow 90 days for remediation before public disclosure. That is a stated coordination policy, and it does not guarantee a response time.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization