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-79704 Overview
CVE-2026-79704 is an out-of-bounds read vulnerability [CWE-125] in the streaming Remote Procedure Call (RPC) client of Apache bRPC. The flaw affects versions 1.11.0 through 1.17.0 on all platforms. A bRPC client that creates multiple streams in a single RPC indexes the server's returned extra_stream_ids list without validating its size. A malicious or compromised server, or an on-path attacker, can return a malformed StreamSettings response to trigger the read past the end of the list. The result is a client-side crash (denial of service) or disclosure of adjacent memory contents into subsequent stream handling.
Critical Impact
An attacker-controlled or on-path server can crash bRPC clients using multi-stream RPC or leak unintended client memory via a malformed StreamSettings response.
Affected Products
- Apache bRPC version 1.11.0
- Apache bRPC versions 1.12.0 through 1.16.x
- Apache bRPC version 1.17.0
Discovery Timeline
- 2026-10-21 - CVE CVE-2026-79704 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-79704
Vulnerability Analysis
Since bRPC 1.11.0, a client can create multiple streams in a single RPC through batch StreamCreate. The protocol contract requires the server to return exactly (N-1) entries in extra_stream_ids, where N is the number of locally created streams. The client reuses this list to map server-side stream identifiers back to local streams.
In Controller::HandleStreamConnection, the response handler iterates over the additional local streams and reads extra_stream_ids[i-1] for each one. The code never compares the size of the returned list against the expected (N-1) count before indexing. When the server returns fewer identifiers than expected, the loop reads past the end of the vector. When the server returns more, surplus identifiers have no corresponding client-side stream and are processed inconsistently.
Root Cause
The root cause is missing bounds validation on a server-controlled list before index-based access. The response path trusts the local stream count to drive iteration over a remote-supplied array. This violates the general principle that any length derived from a peer must be validated before use in array indexing.
Attack Vector
Exploitation requires a bRPC client that uses multi-stream RPC and connects to an untrusted, malicious, or compromised server, or reaches a server through an untrusted network path. The attacker sends a crafted StreamSettings response containing fewer extra_stream_id entries than the client created additional streams. The client then reads beyond the end of the list, producing a crash or leaking adjacent heap memory into downstream stream handling logic. Refer to the Apache Mailing List Thread for the upstream disclosure details.
Detection Methods for CVE-2026-79704
Indicators of Compromise
- Unexpected crashes or segmentation faults in bRPC client processes using batch StreamCreate with multiple streams in a single RPC.
- StreamSettings response frames whose extra_stream_ids field length does not equal (N-1) relative to the client's local stream count.
- RPC failures or inconsistent stream state immediately following connection to an external or newly introduced bRPC server endpoint.
Detection Strategies
- Audit application source for callers that create more than one stream per RPC and connect to servers outside the trust boundary.
- Instrument the bRPC client with sanitizers such as AddressSanitizer in test environments to surface out-of-bounds reads in Controller::HandleStreamConnection.
- Inspect network captures of bRPC traffic for malformed StreamSettings responses with mismatched extra_stream_ids counts.
Monitoring Recommendations
- Monitor process supervisors and container orchestrators for repeated restarts of bRPC client workloads.
- Alert on anomalous RPC error codes and stream cleanup events emitted by bRPC client logging.
- Track outbound bRPC connections to new or untrusted destinations and correlate with client crashes.
How to Mitigate CVE-2026-79704
Immediate Actions Required
- Inventory all services and client binaries that link Apache bRPC between versions 1.11.0 and 1.17.0.
- Upgrade affected bRPC clients to version 1.18.0, which contains the fix.
- Where upgrading is not immediately possible, apply the upstream patch from apache/brpc pull request #3485 and rebuild the client.
- Restrict multi-stream bRPC clients to trusted server endpoints until the fix is deployed.
Patch Information
The upstream fix is included in Apache bRPC 1.18.0 and is available as a backportable patch via apache/brpc pull request #3485. The patch makes the client reject any response whose extra_stream_ids count does not exactly match the number of additional client streams. Mismatched responses fail the RPC with ERESPONSE and proceed through the existing stream cleanup path instead of being partially processed.
Workarounds
- Avoid creating more than one stream in a single RPC until clients are upgraded; single-stream RPCs are not affected.
- Terminate bRPC traffic over mutually authenticated TLS to reduce exposure to on-path attackers injecting malformed responses.
- Constrain bRPC clients to connect only to vetted internal servers through network policy or service mesh authorization.
# Verify installed bRPC version and upgrade
# Replace with your build system's package or source checkout steps
git -C brpc fetch --tags
git -C brpc checkout 1.18.0
cmake -S brpc -B brpc/build && cmake --build brpc/build
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

