Skip to main content
Vulnerability Database/CVE-2026-78048

CVE-2026-78048: Apache bRPC HTTP/2 HPACK DoS Vulnerability

CVE-2026-78048 is a reachable-assertion flaw in Apache bRPC HTTP/2 HPACK decoder that allows remote attackers to crash servers via crafted headers. This post explains its impact, affected versions, and mitigation steps.

Published:

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-78048 Overview

CVE-2026-78048 is a reachable-assertion flaw in the HPACK header-compression decoder of the HTTP/2 (h2/gRPC) stack in Apache bRPC versions prior to 1.18.0. A remote, unauthenticated attacker can crash the server process by sending a crafted sequence of HPACK headers during request processing. The flaw is tracked as CWE-617: Reachable Assertion and results in denial of service against any bRPC server exposing HTTP/2 or gRPC endpoints.

Critical Impact

Unauthenticated attackers can abort any bRPC server handling HTTP/2 or gRPC traffic by sending a single crafted header block, causing complete service disruption.

Affected Products

  • Apache bRPC versions prior to 1.18.0
  • bRPC servers configured to accept HTTP/2 (h2 protocol) requests
  • bRPC servers handling gRPC traffic from untrusted networks

Discovery Timeline

  • 2026-10-21 - CVE-2026-78048 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-78048

Vulnerability Analysis

The flaw resides in the HPACK dynamic-table initialization logic in src/brpc/details/hpack.cpp. The function IndexTable::Init sizes the dynamic-table ring buffer using the formula num_headers = max_size / (32 + 2), assuming a minimum entry size of 34 bytes. This assumption violates RFC 7541 section 4.1, which defines the minimum entry size as 33 bytes because the header value may be empty.

For the default 4096-byte table, this miscalculation allocates only 120 ring-buffer slots. An attacker can submit 121 minimal 33-byte entries whose total byte usage (121 * 33 = 3993) remains at or below the 4096-byte threshold, so byte-based eviction in AddHeader never triggers. The 121st insertion then violates CHECK(!_header_queue.full()), which aborts the process via assertion failure.

Root Cause

The root cause is a mismatch between the slot-count sizing formula and the RFC 7541 minimum-entry definition. Eviction logic in AddHeader is driven exclusively by cumulative byte usage (_max_size) rather than slot occupancy, so the ring buffer can be filled to capacity without eviction ever running. When the full ring buffer receives an additional header, the CHECK macro fires and terminates the process.

Attack Vector

Exploitation requires only network access to a bRPC server that accepts HTTP/2 or gRPC requests. No authentication is required, and the malicious header block is parsed during HPACK decoding before any application-level authorization occurs. An attacker constructs a sequence of 121 or more HPACK header entries using single-byte names and empty values, delivers them within a standard h2 or gRPC request, and the server process aborts upon decoding. The vulnerability manifests entirely in the HPACK decoder path. See the Apache Security Announcement and the upstream fix in PR 3462 for technical details.

Detection Methods for CVE-2026-78048

Indicators of Compromise

  • Unexpected termination of bRPC server processes with assertion failure messages referencing _header_queue.full() or hpack.cpp
  • Core dumps generated by bRPC worker processes immediately after receiving HTTP/2 or gRPC traffic
  • Repeated connection resets or 5xx responses from bRPC services following inbound h2 requests from a single source

Detection Strategies

  • Inspect application and system logs for abort signals (SIGABRT) raised by bRPC processes correlated with recent HTTP/2 request activity
  • Monitor HTTP/2 traffic for request header blocks containing abnormally large counts of minimal-length header entries
  • Alert on service restarts or supervisor-driven respawns of bRPC worker processes that coincide with external request bursts

Monitoring Recommendations

  • Enable crash telemetry and core-dump collection on hosts running bRPC-based services to capture assertion traces
  • Track per-source request rates and header-count distributions at the ingress proxy layer in front of bRPC services
  • Correlate HTTP/2 ingress logs with process uptime metrics to identify crash-restart patterns indicative of exploitation attempts

How to Mitigate CVE-2026-78048

Immediate Actions Required

  • Upgrade Apache bRPC to version 1.18.0 or later on all servers that process HTTP/2 or gRPC traffic
  • Inventory all services built on bRPC and confirm the running library version using build manifests or runtime version endpoints
  • Restrict exposure of bRPC HTTP/2 and gRPC endpoints to trusted networks until patching is complete

Patch Information

The fix is included in Apache bRPC 1.18.0 and in the upstream commit referenced in PR 3462. The patch sizes the dynamic table using max_size / (32 + 1) to match the RFC 7541 33-byte minimum entry size. It also guarantees at least one ring-buffer slot when max_size is smaller than the minimum entry, preventing malloc(0) failures during initialization.

Workarounds

  • Apply the patch from Apache bRPC PR 3462 directly to the source tree if an immediate version upgrade is not feasible
  • Place an HTTP/2-aware reverse proxy in front of bRPC services to enforce limits on header count and total header block size per request
  • Terminate HTTP/2 at a hardened gateway and forward only validated HTTP/1.1 traffic to vulnerable bRPC backends until patched
bash
# Verify the installed bRPC version meets the fixed release
grep -R "BRPC_VERSION" /path/to/brpc/src/brpc/ | grep -i version
# Ensure the reported version is >= 1.18.0

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.