CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-84304

CVE-2026-84304: Uncontrolled Resource Consumption in gRPC-Go HTTP/2 Frame Processing

Alon Barad
Alon Barad
Software Engineer

Sep 1, 2026·7 min read·237 visits

Executive Summary (TL;DR)

An unauthenticated remote attacker can crash gRPC-Go servers (prior to version 1.83.1) by sending millions of fragmented, 1-byte HTTP/2 DATA frames. This bypasses standard flow control limits, forcing excessive metadata allocation on the heap and leading to Out-of-Memory (OOM) crashes.

CVE-2026-84304 is a high-severity uncontrolled resource consumption vulnerability in gRPC-Go, the Go implementation of the gRPC framework. The issue stems from a memory amplification flaw inside the HTTP/2 DATA frame processing subsystem. Remote, unauthenticated attackers can exploit this vulnerability by sending a high volume of heavily fragmented, tiny DATA frames within multiplexed concurrent streams. This causes gRPC-Go servers to allocate excessive internal metadata structures on the Go heap, leading to severe heap memory amplification, intense garbage collection thrashing, and process termination due to Out-of-Memory (OOM) conditions.

Vulnerability Overview

The vulnerability resides in the gRPC-Go network transport component, specifically within the internal receive buffer system (recvBuffer) defined in internal/transport/transport.go. This component handles the delivery of incoming HTTP/2 transport frames to active RPC endpoints. The attack surface is exposed to any network interface where a gRPC-Go server is actively listening for incoming client requests, requiring no pre-authentication or specific session state.

Under standard operating conditions, gRPC-Go manages incoming data streams by queueing parsed HTTP/2 frames into memory pools. However, the interface between the HTTP/2 frame parsing loop and the message delivery queue lacked a mechanism to evaluate the ratio of packet metadata size to actual payload data size. Consequently, attackers can manipulate this omission to force the server into a worst-case allocation state.

This security vulnerability belongs to the Uncontrolled Resource Consumption class (CWE-400). The ultimate impact of successful exploitation is a complete denial of service (DoS) for the affected microservice. Because many core Kubernetes components, service meshes, and cloud-native applications rely heavily on gRPC-Go, a failure in this transport component can propagate throughout adjacent service tiers.

Root Cause Analysis

To understand the root cause of CVE-2026-84304, it is necessary to examine the interaction between HTTP/2 flow control and the Go runtime heap. HTTP/2 utilizes a window-based flow control mechanism to limit the volume of unacknowledged data bytes sent across a connection or individual stream. This mechanism restricts the size of the raw payloads an endpoint can transmit, preventing memory exhaustion under normal conditions.

However, standard HTTP/2 flow control only tracks raw payload bytes; it does not account for the number of frames used to transmit those bytes. In vulnerable versions of gRPC-Go, every incoming HTTP/2 DATA frame is parsed into an individual tracking structure called recvMsg. On a 64-bit architecture, each recvMsg structure, combined with its underlying slice headers and pointer trackers, incurs approximately 56 bytes of metadata overhead, regardless of payload size.

When an attacker fragments a small payload (for example, 100 KB) into 100,000 separate 1-byte DATA frames, the metadata-to-payload ratio inverts. The raw payload consumes only 100 KB, which comfortably remains within default stream flow-control windows. However, the accompanying tracking structures consume 5.6 MB of heap memory, yielding an amplification ratio of 56:1. By scale, sending 10 MB of data split into 10 million frames forces over 560 MB of heap allocations, triggering garbage collection (GC) thrashing and process termination via the OS Out-of-Memory (OOM) killer.

Code Analysis and Patch Deep Dive

The vulnerability was mitigated in gRPC-Go version 1.83.1 by implementing an automated, lazy receive buffer compaction mechanism. This mechanism bounds the metadata-to-payload ratio by merging fragmented small frames. The patch defines a utilization threshold to determine when the tracking overhead has become disproportionately high compared to the payload size.

const (
    logLevel = 2
    // recvMsgSize estimates the memory overhead of a recvMsg in the backlog.
    // It accounts for the recvMsg struct itself and the slice header of the
    // underlying buffer's data.
    recvMsgSize = int(unsafe.Sizeof(recvMsg{}) + unsafe.Sizeof([]byte{}))
 
    // utilizationFactor controls when we consider memory utilization acceptable.
    // When backlogHeapSize / payloadSize <= utilizationFactor, compaction is skipped.
    utilizationFactor = 2
)
 
var (
    // compactionThreshold is approx 57KB (on 64-bit systems). It allows
    // accumulating up to 1024 1-byte payloads before triggering compaction.
    compactionThreshold = imem.BufferPoolingThreshold * (recvMsgSize + 1)
)

The fix introduces fields in recvBuffer to monitor uncompacted data. When recvBuffer.put() appends an incoming message to the backlog, it evaluates the accumulation metrics using compactBacklogLocked(). If the ratio of total metadata heap size to raw payload bytes exceeds utilizationFactor, and the total allocated size surpasses compactionThreshold, the compaction routine executes.

func (b *recvBuffer) compactBacklogLocked(r recvMsg) {
    if !envconfig.EnableReceiveBufferCompaction {
        return
    }
    if r.buffer == nil {
        b.uncompactedBytes = 0
        b.uncompactedSuffixLen = 0
        return
    }
 
    b.uncompactedSuffixLen++
    b.uncompactedBytes += r.buffer.Len()
    backlogHeapSize := b.uncompactedSuffixLen*recvMsgSize + b.uncompactedBytes
 
    // Check if the ratio of allocated heap to actual payload is acceptable
    if backlogHeapSize <= utilizationFactor*b.uncompactedBytes {
        b.uncompactedBytes = 0
        b.uncompactedSuffixLen = 0
        return
    }
    
    // Skip compaction if total uncompacted footprint is below the threshold
    if backlogHeapSize <= compactionThreshold {
        return
    }
 
    // Perform compaction: Coalesce small, fragmented frames into a contiguous pooled buffer
    start := 0
    newBuf := b.bufPool.Get(b.uncompactedBytes)
    startIdx := len(b.backlog) - b.uncompactedSuffixLen
 
    for i := startIdx; i < len(b.backlog); i++ {
        m := b.backlog[i]
        b.backlog[i] = recvMsg{} // Prevent memory leaks by clearing reference
        start += copy((*newBuf)[start:], m.buffer.ReadOnlyData())
        m.buffer.Free() // Free individual small buffers back to pool
    } 
    
    b.backlog[startIdx] = recvMsg{
        buffer: mem.NewBuffer(newBuf, b.bufPool),
    }
    b.backlog = b.backlog[:startIdx+1] // Truncate the slice length
    b.uncompactedBytes = 0
    b.uncompactedSuffixLen = 0
}

Exploitation Methodology

An attack utilizing CVE-2026-84304 requires direct TCP network access to the gRPC-Go server port. The attacker begins by initiating a standard HTTP/2 connection handshake. Once the connection is established, the attacker opens multiple concurrent streams using multiplexing, which increases the server's processing concurrency and distributes the load across several handler routines.

Next, the attacker initiates a standard RPC request call. Instead of transmitting the request payload in a small number of standard-sized HTTP/2 DATA frames, the attacker's client custom-codes the frame layer to split the payload into single-byte blocks. This produces an extremely high volume of DATA frames sent in immediate succession.

Throughout this process, the attacker ensures that the total volume of raw payload bytes remains below the active stream and connection-level WINDOW_UPDATE thresholds. Consequently, standard HTTP/2 flow control limits are never triggered. The target server continues to accept the incoming stream of tiny frames, accumulating hundreds of thousands of recvMsg structures in the stream's backlog queue until system memory is exhausted.

Security Implications & Bypass Potential

Although the receive buffer compaction patch effectively mitigates the primary memory exhaustion vector, secondary security implications remain. Researchers must consider potential CPU exhaustion vectors arising from the compaction process itself. An attacker could craft a specific sequence of frame sizes designed to hover precisely around the compactionThreshold, causing the server to execute repeated memory allocations and copy() calls.

Additionally, the patch relies on Go's slice slice-expression (b.backlog[:startIdx+1]) to shrink the active backlog. While this operation decreases the length of the slice, it does not reduce the capacity of the underlying array. If the queue grows substantially prior to a compaction cycle, a portion of the memory allocated for the slice's backing array remains referenced on the heap until the slice is fully garbage collected.

Finally, the mitigation can be completely bypassed if the environment variable GRPC_GO_EXPERIMENTAL_ENABLE_RECEIVE_BUFFER_COMPACTION is explicitly set to false. Administrators of cloud-native and Kubernetes deployments must audit container manifests to ensure this variable has not been disabled by legacy configuration scripts.

Remediation and Detection Guidance

To resolve the vulnerability, development teams must upgrade their gRPC-Go dependencies to version 1.83.1 or later. This can be accomplished by updating the Go module file and recompiling the application binary:

go get google.golang.org/grpc@v1.83.1
go mod tidy

If immediate patching is not possible, security teams can employ temporary workarounds. Deploying a reverse proxy or Web Application Firewall (WAF) such as Envoy or NGINX in front of the gRPC service can provide protection. These proxies can be configured to enforce limits on the minimum size of incoming HTTP/2 DATA frames and restrict maximum stream concurrency.

Additionally, administrators can limit exposure by configuring tight read deadlines and minimizing the MaxConcurrentStreams parameter on gRPC servers. This limits the number of parallel channels an attacker can exploit on a single TCP connection, reducing the rate of heap memory accumulation.

Official Patches

gRPCGHSA Security Advisory for gRPC-Go Uncontrolled Resource Consumption

Fix Analysis (2)

Technical Appendix

CVSS Score
8.7/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected Systems

gRPC-Go applications utilizing transport layers prior to version 1.83.1.

Affected Versions Detail

Product
Affected Versions
Fixed Version
gRPC-Go
gRPC
< 1.83.11.83.1
AttributeDetail
CWE IDCWE-400
Attack VectorNetwork (AV:N)
CVSS v4.0 Score8.7
Vulnerability TypeUncontrolled Resource Consumption
Exploit Statusnone
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
CWE-400
Uncontrolled Resource Consumption

The software does not properly control the allocation or maintenance of critical resources, enabling attackers to exhaust system memory and trigger a denial of service.

Vulnerability Timeline

Initial implementation of the buffer compaction fix in PR #9331 completed.
2026-07-30
Cherry-pick of the fix into the v1.83.x release branch completed via PR #9333.
2026-08-19
gRPC-Go version 1.83.1 tagged and released.
2026-08-19
Security Advisory GHSA-vp52-pcj8-j9qc published and CVE-2026-84304 assigned.
2026-09-01

References & Sources

  • [1]GitHub Security Advisory GHSA-vp52-pcj8-j9qc
  • [2]Fix Commit - Buffer Compaction Implementation
  • [3]Cherry-pick Commit to v1.83.x Release Branch
  • [4]gRPC-Go Pull Request #9331
  • [5]gRPC-Go Pull Request #9333
  • [6]gRPC-Go Release v1.83.1 Tag

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•19 minutes ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 2 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 3 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 4 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 5 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read