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-82230 Overview
CVE-2026-82230 is an uncontrolled recursion vulnerability [CWE-674] in the mcpack2pb component of Apache bRPC versions prior to 1.18.0. The parser recursively processes nested objects and arrays without enforcing any depth limit. Remote attackers can send deeply nested mcpack data to a vulnerable bRPC server and trigger a stack overflow, crashing the process. The flaw affects servers that use recursive-schema protobuf messages to handle nshead_mcpack, ubrpc, or public_pbrpc requests from untrusted networks. Apache bRPC maintainers released version 1.18.0 to address the issue.
Critical Impact
Unauthenticated remote attackers can crash Apache bRPC server processes by sending a single deeply nested mcpack request, producing a denial-of-service condition on exposed services.
Affected Products
- Apache bRPC versions prior to 1.18.0
- bRPC servers exposing nshead_mcpack endpoints
- bRPC servers exposing ubrpc or public_pbrpc endpoints with recursive protobuf schemas
Discovery Timeline
- 2026-10-21 - CVE-2026-82230 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-82230
Vulnerability Analysis
The vulnerability resides in the mcpack2pb parser that bRPC uses to decode mcpack-encoded requests into protobuf messages. The parser walks the incoming request structure by invoking itself for each nested object or array it encounters. No counter or guard limits how deep this recursion is allowed to grow.
When a protobuf message schema references itself through a repeated message field, the generated parser calls itself once for every nesting level in the attacker-supplied payload. An attacker crafts an mcpack message with thousands of nested elements and submits it to any affected endpoint. The call stack grows until it exhausts the thread stack and the server process terminates.
The impact is a denial of service against the entire bRPC worker process. Confidentiality and integrity are not affected, but availability of any service built on bRPC with a recursive request schema is compromised.
Root Cause
The mcpack2pb parser enforces no bound on recursive descent while deserializing nested objects. The serializer path already enforced a documented MAX_DEPTH limit of 128, but the parsing path did not mirror that check. This asymmetry allowed attacker-controlled input to drive recursion past the stack size supported by the hosting process.
Attack Vector
Exploitation requires only network access to a vulnerable bRPC endpoint. The attacker sends a single mcpack request whose body contains a repeated or nested object structure exceeding the stack depth the server can tolerate. No authentication, user interaction, or prior foothold is required. See the Apache mailing list thread for the maintainer disclosure.
// No verified public exploit code is available at the time of writing.
// The payload shape is a deeply nested mcpack object matching a
// recursive protobuf schema, submitted to an affected RPC endpoint.
Detection Methods for CVE-2026-82230
Indicators of Compromise
- Repeated unexpected crashes or restarts of bRPC server processes with stack overflow signatures (SIGSEGV on stack guard pages)
- Core dumps showing long recursive call chains inside mcpack2pb parsing functions
- Spikes in nshead_mcpack, ubrpc, or public_pbrpc request error rates coinciding with worker termination
Detection Strategies
- Inspect bRPC server logs for abrupt termination events followed by supervisor restarts without a clean shutdown path
- Monitor inbound mcpack request sizes and nesting depth at the application boundary; flag payloads approaching or exceeding 128 levels of nesting
- Correlate process crash telemetry with recent inbound RPC traffic from a single or small set of sources
Monitoring Recommendations
- Enable crash dump collection on hosts running bRPC services and route dumps to a centralized analysis pipeline
- Alert on repeated process exits of bRPC workers within short windows, which is characteristic of DoS attempts
- Track EPSS and vendor advisory updates for Apache bRPC to catch exploitation signal changes
How to Mitigate CVE-2026-82230
Immediate Actions Required
- Upgrade Apache bRPC to version 1.18.0 or later on all servers exposing mcpack-compatible endpoints
- Inventory internal services that embed bRPC and verify which use recursive protobuf schemas for nshead_mcpack, ubrpc, or public_pbrpc
- Restrict network exposure of affected RPC endpoints to trusted clients where upgrade cannot occur immediately
Patch Information
Upgrade to Apache bRPC 1.18.0, which enforces the documented MAX_DEPTH limit of 128 on the parsing path, matching the serializer. Alternatively, apply the upstream fix from Apache bRPC PR #3499. After applying the fix, any inbound mcpack message nested deeper than 128 levels will be rejected rather than parsed.
Workarounds
- Place a reverse proxy or application-layer filter in front of bRPC endpoints to reject oversized or deeply nested mcpack payloads
- Limit bRPC listeners to internal networks and apply ACLs that restrict access to known client identities until the upgrade is deployed
- Reduce the worker thread stack size impact by running bRPC under process supervision that enforces fast restarts and rate-limits request sources
# Example: validate the installed bRPC version after upgrade
grep -R "BRPC_VERSION" /path/to/brpc/include/butil/
# Expected output should reference version 1.18.0 or later
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

