CVE-2026-80463: Apache bRPC: Unbounded Memory Accumulation in Stream Message Reassembly
Unbounded memory accumulation in the stream message reassembly path of Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to exhaust the memory of a server (denial of service) by sending an endless sequence of continuation data frames.
Root Cause: The streaming RPC protocol bounds every single data frame by maxbodysize, but a fragmented stream message accumulates continuation frames into one buffer (pendingbuf) without any limit on the accumulated size. A malicious peer that can open a stream can therefore keep sending continuation frames to make the receiver accumulate an arbitrarily large in-memory message. Since the default flow-control settings (socketmaxstreamsunconsumedbytes=0) do not throttle the sending rate, the receiver's memory grows until the process runs out of memory and crashes or becomes unavailable.
Affected Scenarios: Services that accept streams from untrusted clients (for example using brpc::StreamAccept or brpc::StreamCreate with the built-in streaming protocol) are affected.
How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3489
Note: The fix limits the accumulated payload of a fragmented stream message to maxbodysize (default 64MB). When the accumulated payload exceeds the limit, the pending fragments are released and the stream is closed with error EMSGSIZE. After applying the fix, legitimate fragmented stream messages larger than maxbodysize will be rejected; you can adjust the gflag maxbodysize to change the limit.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache bRPCto a version that resolves this vulnerability.Fixed in 1.18.0 - Configuration
Adjust the max_body_size gflag to change the limit for accumulated fragmented stream messages; the default is 64MB.
Apache bRPC max_body_size = 64MB
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service issue?
Services that accept streams from untrusted clients are affected, including those using brpc::StreamAccept or brpc::StreamCreate with the built-in streaming protocol. The issue applies on all platforms when using bRPC versions earlier than 1.18.0.
What must an attacker be able to do to exploit it?
An attacker must be able to open a stream to the target service. They can then send an endless sequence of continuation data frames, causing fragmented message data to accumulate in memory without a total-size limit.
Are default flow-control settings sufficient to prevent the issue?
No. The default socket_max_streams_unconsumed_bytes=0 setting does not throttle the sender, allowing memory consumption to grow until the process runs out of memory or becomes unavailable.
What should be done if an immediate upgrade is not possible?
Apply the provided upstream patch. Until remediation is deployed, reduce exposure by preventing untrusted clients from opening streams where operationally possible.