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-78058 Overview
CVE-2026-78058 is an uncontrolled resource consumption vulnerability [CWE-400] in the HTTP/2 (h2) receive path of Apache bRPC versions before 1.18.0. A remote unauthenticated attacker can crash the server or grow memory without bound by sending crafted HTTP/2 frames. The h2 parser runs on every bRPC server port by default and executes before any authenticator check. Both bRPC servers exposing HTTP/h2/gRPC and bRPC h2/gRPC clients connecting to untrusted backends are affected.
Critical Impact
Unauthenticated attackers can trigger process crashes or unbounded memory growth against any bRPC endpoint reachable over the network, enabling denial of service against production RPC infrastructure.
Affected Products
- Apache bRPC versions prior to 1.18.0
- bRPC servers serving HTTP/h2/gRPC to untrusted networks
- bRPC h2/gRPC clients connecting to untrusted backends
Discovery Timeline
- 2026-10-21 - CVE-2026-78058 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-78058
Vulnerability Analysis
The bRPC h2 parser advertises receive-side limits through HTTP/2 SETTINGS frames but never enforces them on inbound traffic. This gap allows a peer to disregard advertised ceilings and exhaust server resources through several distinct amplification paths. Because the parser runs before authentication on shared ports, the attack requires no credentials.
The vulnerability combines four independent enforcement failures, each sufficient to degrade or crash a target. Memory amplification factors reach roughly 100x for stream pinning and 4000x for HPACK-based header expansion.
Root Cause
The parser trusts peers to respect limits it never checks. SETTINGS_MAX_CONCURRENT_STREAMS defaulted to unlimited, allowing a single connection to pin an unbounded number of pending streams. SETTINGS_MAX_HEADER_LIST_SIZE was also unenforced, so 1-byte HPACK indexed references expand into an unbounded decoded header list, forming an HPACK bomb. A never-completed HEADERS or CONTINUATION block accumulates memory indefinitely.
Separately, control-frame acknowledgements (PING, SETTINGS ack, RST_STREAM, GOAWAY, WINDOW_UPDATE) bypass the -socket_max_unwritten_bytes write cap. The HPACK dynamic table size update is validated against the protocol default of 4096 instead of the advertised SETTINGS_HEADER_TABLE_SIZE, which can desynchronize the decoder and dereference a NULL pointer.
Attack Vector
A remote unauthenticated attacker opens an HTTP/2 connection to a vulnerable bRPC endpoint and sends crafted frames. Opening many streams without closing them pins memory per connection. Sending a small HEADERS frame full of indexed HPACK references forces the decoder to materialize a massive header list. A PING flood combined with a stalled TCP read window grows the connection write buffer past the documented bound. A malformed dynamic-table size update can crash the process via NULL dereference.
See the Apache Mailing List Thread for the full technical disclosure.
Detection Methods for CVE-2026-78058
Indicators of Compromise
- Sudden sustained growth of resident memory on bRPC server processes without a matching increase in completed requests.
- High counts of long-lived HTTP/2 streams per connection, far exceeding typical client behavior.
- Elevated rates of inbound PING frames or incomplete HEADERS/CONTINUATION sequences on bRPC listeners.
- Process crashes with NULL pointer dereference signatures originating in the h2 HPACK decoder path.
Detection Strategies
- Monitor per-connection stream counts and per-stream decoded header sizes on bRPC listeners through application metrics or an HTTP/2-aware proxy.
- Alert on anomalous ratios of control frames (PING, WINDOW_UPDATE) to data frames on a single connection.
- Track bRPC process RSS and file-descriptor counts and correlate spikes with HTTP/2 traffic sources.
Monitoring Recommendations
- Capture bRPC server logs and resource telemetry into a centralized data store for retrospective analysis of memory and connection anomalies.
- Place an HTTP/2-aware reverse proxy in front of bRPC endpoints exposed to untrusted networks to enforce stream and header limits.
- Review network flow records for repeated long-lived HTTP/2 connections from single sources targeting bRPC ports.
How to Mitigate CVE-2026-78058
Immediate Actions Required
- Upgrade Apache bRPC to version 1.18.0 or later on all servers and client libraries.
- Inventory every service linking against bRPC and verify its h2/gRPC exposure to untrusted networks.
- Restrict network access to bRPC listeners until patches are deployed, using firewall rules or service mesh policy.
Patch Information
Apply the fix released in apache/brpc pull request 3474 or upgrade to bRPC 1.18.0. After patching, the following defaults are enforced: max_concurrent_streams of 1024 per connection, max_header_list_size of 1 MiB decoded per stream, and h2 control-frame acks that respect -socket_max_unwritten_bytes. Requests exceeding these limits are rejected with RST_STREAM(REFUSED_STREAM) or a connection error.
Workarounds
- Front bRPC endpoints with an HTTP/2-aware reverse proxy that enforces MAX_CONCURRENT_STREAMS and MAX_HEADER_LIST_SIZE.
- Terminate TLS and HTTP/2 at a hardened gateway and forward only validated traffic to bRPC backends.
- Apply rate limiting and connection quotas per source IP on bRPC listener ports.
# After upgrading to bRPC >= 1.18.0, tune the enforced limits via flags
# Server-side defaults (per connection / per stream)
--max_concurrent_streams=1024
--max_header_list_size=1048576
# Client-side header list cap
--h2_client_max_header_list_size=1048576
# Keep control-frame acks within the socket write cap (do NOT set the restore flag)
# --h2_ack_ignore_eovercrowded=false # default after patch
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

