Apache bRPC versions prior to 1.18.0 contain vulnerabilities that allow remote attackers to control file paths and cause uncontrolled resource consumption via builtin services. Attackers can create directories and overwrite files with server process privileges by manipulating runtime flags. Additionally, the profiling service can be abused to hold CPU profiling resources for extended periods, causing denial of service.
Apache bRPC versions prior to 1.18.0 have an interpretation conflict in their HTTP protocol implementation that allows remote attackers to bypass access control rules enforced by a front proxy. This occurs because the bRPC server collapses consecutive slashes in request paths, treating paths with empty segments as equivalent to their collapsed form, contrary to RFC 3986. Additionally, the HTTP/2 implementation does not properly validate the :path pseudo-header, allowing malformed requests to be accepted. This vulnerability affects deployments where bRPC is behind a front proxy that enforces access control on literal paths but forwards requests to bRPC, enabling attackers to reach restricted resources. The issue is fixed in bRPC version 1.18.0.
Apache bRPC versions prior to 1.18.0 have an improper authorization vulnerability that allows remote attackers to access builtin services through the public port. This occurs because protobuf-based protocol dispatch paths do not enforce the security_mode flag, enabling unauthorized invocation of builtin services intended only for internal access. This can lead to disclosure of sensitive runtime information such as metrics, flags, and profiler data. The issue affects any deployment where the public port is reachable from untrusted networks and protobuf-based protocols are enabled alongside ServerOptions.internal_port configuration.
Apache bRPC versions prior to 1.18.0 contain an HTTP request/response smuggling vulnerability due to inconsistent parsing of HTTP/1.1 headers. This allows remote attackers to desynchronize the bRPC parser from front-end proxies or load balancers, enabling request smuggling and header injection such as forged Authorization or X-Forwarded-For headers. The issue arises from bRPC accepting obsolete or non-standard header forms that front-ends reject or interpret differently. The vulnerability is fixed in bRPC version 1.18.0.
Apache bRPC versions prior to 1.18.0 contain an uncontrolled recursion vulnerability in the mcpack2pb component. This flaw allows remote attackers to crash the server by sending deeply nested mcpack data. The parser recursively processes nested objects and arrays without a depth limit, leading to stack overflow and process crash. The issue affects bRPC servers handling nshead_mcpack, ubrpc, or public_pbrpc requests with recursive protobuf schemas. The vulnerability is fixed in version 1.18.0 by enforcing a maximum parsing depth of 128 levels.
An out-of-bounds read vulnerability exists in the streaming RPC client of Apache bRPC versions 1.11.0 through 1.17.0. The flaw occurs when a client creates multiple streams in a single RPC and the server response contains fewer extra_stream_ids than expected, leading to an out-of-bounds read. This can cause the client process to crash (denial of service) or leak unintended memory contents. The issue is fixed in version 1.18.0.
Apache bRPC versions prior to 1.18.0 contain multiple resource exhaustion vulnerabilities in parsers handling wire-controlled input. These parsers do not enforce limits on client-declared sizes or decompressed output, allowing attackers to cause excessive memory consumption and crash the service process. The issue affects gzip/zlib/snappy decompressors, AMF string readers, RTMP chunk headers, sofa-pbrpc parser, and mcpack2pb message handling. The vulnerability is fixed in version 1.18.0, which enforces size limits and rejects requests exceeding configured thresholds.
Apache bRPC versions prior to 1.18.0 perform server certificate chain validation when client TLS peer verification is enabled but do not verify that the certificate matches the expected DNS name or IP address. This allows a network attacker who can intercept or redirect connections and has a certificate issued by a trusted CA for a different name to impersonate the intended TLS endpoint. The issue affects applications using bRPC client Channels connecting over untrusted networks with certificate verification enabled. The vulnerability is addressed by upgrading to version 1.18.0, which adds hostname verification during the TLS handshake.
A heap use-after-free vulnerability exists in the RTMP protocol component of Apache bRPC versions prior to 1.18.0. A remote attacker can crash a bRPC RTMP server by sending a crafted Abort control message without requiring authentication or application-level requests. The issue arises when the Abort message targets the chunk stream currently being parsed, leading to use-after-free during message processing.
A reachable-assertion vulnerability exists in the HPACK header-compression decoder of the HTTP/2 (h2/gRPC) stack in Apache bRPC versions prior to 1.18.0. This flaw allows a remote attacker to crash the server by sending a crafted sequence of HPACK headers, causing a denial of service. The issue arises from incorrect sizing of the dynamic-table ring buffer, leading to an assertion failure during header processing.
Apache bRPC versions prior to 1.18.0 have a missing authentication check in the streaming RPC path. This flaw allows remote attackers to bypass server authentication and inject or deliver streaming frames when the server is configured with an Authenticator. The issue arises because streaming RPC frames bypass the authentication hook and streams can accept frames from unauthorized sockets. The vulnerability is fixed in version 1.18.0.
Apache bRPC versions prior to 1.18.0 have an uncontrolled resource consumption vulnerability in the HTTP/2 receive path. This flaw allows remote unauthenticated attackers to crash the server or cause unbounded memory growth by sending specially crafted HTTP/2 frames. The issue arises because the server does not enforce advertised HTTP/2 limits such as max concurrent streams and max header list size, and control-frame acknowledgments bypass write caps. The vulnerability affects any bRPC server or client using HTTP/2/gRPC on untrusted networks. Upgrading to version 1.18.0 or later or applying the referenced patch mitigates the issue by enforcing these limits.