---
id: "CVE-2026-81755"
kind: "vulnerability"
aliases: ["CVE-2026-81755"]
title: "Apache bRPC: streaming RPC lets one request exhaust server memory"
severity: "high"
cvss: null
epss: 0.00233
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["brpc", "c++", "package", "self-hosted", "streaming-rpc"]
not_affected_if: ["no-streaming-rpc", "trusted-clients-only"]
published_at: "2026-10-21T12:17:24+00:00"
first_seen_at: "2026-10-23T21:57:28+00:00"
updated_at: "2026-10-25T05:02:31+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81755", "first_seen_at": "2026-10-23T21:57:28+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-81755", "first_seen_at": "2026-10-24T13:15:54+00:00"}]
---

# Apache bRPC: streaming RPC lets one request exhaust server memory

A single RPC request can declare a huge number of extra stream identifiers, and the server's StreamAccept creates a response stream and bthread execution queue for each one. An unauthenticated remote client can exhaust server memory and cause denial of service.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the bRPC version in use, for example with `grep -ri brpc` in the build files or by inspecting the linked library version.
- Confirm whether the server calls `StreamAccept` for streams from untrusted clients.

## Fix

- Upgrade bRPC to `1.18.0` or later.
- Alternatively, apply the patch from https://github.com/apache/brpc/pull/3493, which adds the `stream_max_streams_per_request` gflag (default `64`); raise it only if legitimate requests need more streams per RPC.

## Timeline

- 2026-10-23T21:57:28+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-81755
- 2026-10-24T13:15:54+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-81755

## From the sources

Uncontrolled resource consumption in the streaming RPC component of Apache bRPC (version < 1.18.0) allows a remote attacker to exhaust server memory and cause denial of service by sending a single RPC request that declares an excessive number of streams.

Root Cause:
In the streaming RPC feature, a client can declare multiple streams in one RPC request by putting extra stream identifiers into the repeated field `stream_settings.extra_stream_ids` of the RPC meta. On the server side, `StreamAccept` creates one response stream for every stream identifier declared by the request, without limiting the number of streams accepted in a single RPC. The request body size is only bounded by `max_body_size` (default 64MB), which is enough to carry millions of stream identifiers. Each accepted stream allocates its own bthread execution queue and associated resources, so a single crafted request can make the server create a huge number of streams and exhaust memory, leading to denial of service.

Affected Scenarios:
Use a bRPC server that serves streaming RPC and calls `StreamAccept` to accept streams from untrusted clients.

How to Fix: 
(Choose one of the following options) 
1. Upgrade bRPC to the 1.18.0 version.
2. Apply this patch:  https://github.com/apache/brpc/pull/3493 


Note:
The fix 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 need to accept more than 64 streams in one RPC must raise this flag; otherwise such requests will fail after applying the fix.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
