Skip to main content
Vulnerability Database/CVE-2026-81755

CVE-2026-81755: Apache bRPC Streaming RPC DOS Vulnerability

CVE-2026-81755 is a denial of service vulnerability in Apache bRPC that allows attackers to exhaust server memory through excessive stream declarations. This post covers the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-81755 Overview

CVE-2026-81755 is an uncontrolled resource consumption vulnerability [CWE-400] in the streaming RPC component of Apache bRPC versions earlier than 1.18.0. A remote attacker can send a single crafted RPC request that declares an excessive number of streams, causing the server to allocate resources for each one and exhaust memory. The result is a denial-of-service condition against any bRPC server that calls StreamAccept to accept streams from untrusted clients.

Critical Impact

A single unauthenticated RPC request can trigger allocation of millions of streams, exhausting server memory and causing denial of service against Apache bRPC deployments exposed to untrusted clients.

Affected Products

  • Apache bRPC versions prior to 1.18.0
  • bRPC servers that enable streaming RPC and invoke StreamAccept
  • Services accepting streaming RPC requests from untrusted clients

Discovery Timeline

  • 2026-10-21 - CVE-2026-81755 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-81755

Vulnerability Analysis

The vulnerability resides in the streaming RPC feature of Apache bRPC. A client can declare multiple streams within one RPC request by populating extra stream identifiers in the repeated field stream_settings.extra_stream_ids of the RPC meta. The server-side StreamAccept routine creates one response stream per declared identifier without enforcing any upper bound.

Each accepted stream allocates its own bthread execution queue and associated resources. Because the request body is bounded only by max_body_size (default 64MB), a single request can carry millions of stream identifiers. The server then attempts to instantiate a stream for every identifier, consuming heap memory and queue structures until the process exhausts available memory.

Root Cause

The root cause is a missing limit on the number of streams a single RPC request may declare. StreamAccept iterates over extra_stream_ids and unconditionally creates a response stream for each entry. No validation enforces a maximum stream count, so the attacker-controlled field directly drives server-side resource allocation.

Attack Vector

An attacker sends one streaming RPC request to a vulnerable bRPC server with stream_settings.extra_stream_ids populated with a large number of identifiers. The request stays within the 64MB max_body_size default while declaring millions of streams. The server allocates per-stream bthread queues and buffers, and memory consumption grows until the process is terminated or stops serving legitimate traffic. The attack requires network reachability to the streaming RPC endpoint and no authentication beyond what the application layer enforces.

See the Apache Security Mailing List Thread for the full technical disclosure.

Detection Methods for CVE-2026-81755

Indicators of Compromise

  • Sudden, sustained growth in resident memory of bRPC server processes without a corresponding increase in legitimate request volume.
  • RPC requests with unusually large stream_settings.extra_stream_ids fields or request bodies approaching the max_body_size limit.
  • Spikes in bthread execution queue counts or stream object allocations on affected services.

Detection Strategies

  • Instrument bRPC servers to log the number of stream identifiers per request and alert when counts exceed expected application thresholds.
  • Monitor process-level metrics (RSS, heap usage, bthread counts) and correlate anomalies with inbound RPC traffic patterns.
  • Inspect network traffic to streaming RPC endpoints for repeated OOM conditions or process restarts following specific client connections.

Monitoring Recommendations

  • Track memory consumption trends per bRPC service and alert on rapid, request-triggered allocation bursts.
  • Collect application logs for stream creation events and surface requests that declare large stream counts.
  • Review connection source IPs and client identities when denial-of-service conditions coincide with streaming RPC usage.

How to Mitigate CVE-2026-81755

Immediate Actions Required

  • Upgrade Apache bRPC to version 1.18.0 or later, which introduces the stream_max_streams_per_request gflag.
  • If upgrading is not immediately feasible, apply the upstream fix from apache/brpc pull request #3493.
  • Restrict network exposure of streaming RPC endpoints to trusted clients until the patch is deployed.
  • Audit applications that call StreamAccept to confirm legitimate stream counts remain within the new default limit of 64.

Patch Information

The fix is available in Apache bRPC 1.18.0 and in the upstream commit referenced by apache/brpc PR #3493. It adds a new gflag stream_max_streams_per_request with a default value of 64. Requests declaring more streams than the limit are rejected before any response stream is created. Applications that legitimately require more than 64 streams per RPC must raise this flag explicitly or those requests will be rejected after applying the fix.

Workarounds

  • Place streaming RPC endpoints behind authenticated gateways or network ACLs that limit access to trusted clients.
  • Lower the max_body_size server setting to reduce the maximum number of stream identifiers a single request can carry.
  • Deploy rate limiting and connection quotas in front of bRPC services to constrain how quickly a client can trigger stream allocation.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.