CVE-2026-78048
Last modified
CVE-2026-78048 is a vulnerability of currently unknown severity. A reachable-assertion flaw in the HPACK header-compression decoder of the HTTP/2 (h2/gRPC) stack in Apache bRPC (version < 1.18.0) on all platforms allows a remote attacker to crash the server process by sending a crafted sequence of HPACK headers, resulting in a denial of service. Root Cause: In src/brpc/details/hpack.cpp, IndexTable::Init sizes the dynamic-table ring buffer as num_headers = max_size / (32 + 2), i.e. it assumes a minimum table entry of 34 bytes (name >= 1 byte + value >= 1 byte + 32 bytes of overhead).
Description
A reachable-assertion flaw in the HPACK header-compression decoder of the HTTP/2 (h2/gRPC) stack in Apache bRPC (version < 1.18.0) on all platforms allows a remote attacker to crash the server process by sending a crafted sequence of HPACK headers, resulting in a denial of service. Root Cause: In src/brpc/details/hpack.cpp, IndexTable::Init sizes the dynamic-table ring buffer as num_headers = max_size / (32 + 2), i.e. it assumes a minimum table entry of 34 bytes (name >= 1 byte + value >= 1 byte + 32 bytes of overhead). However, RFC 7541 section 4.1 specifies that the minimum entry size is 33 bytes, because the value may be empty (name >= 1 byte + value == 0 + 32 bytes). For the default 4096-byte table this allocates only 120 slots (4096/34). Eviction in AddHeader is driven by byte usage (_max_size), not by slot count, so a peer can add 121 minimal 33-byte entries (121*33 = 3993 <= 4096) without triggering eviction. The 121st AddHeader then hits CHECK(!_header_queue.full()), which aborts the process. Affected Scenarios: Use a bRPC server that serves HTTP/2 or gRPC requests (e.g. via the h2 protocol) from an untrusted network. The malicious header block is processed during HPACK decoding of incoming requests without authentication. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3462 Note: The fix sizes the dynamic table for the 33-byte minimum entry (max_size / (32 + 1)) and ensures at least one ring-buffer slot is kept when max_size is smaller than the minimum entry, so that initialization cannot fail on malloc(0).
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache bRPC | < 1.18.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-78048?
How severe is CVE-2026-78048?
How do I fix CVE-2026-78048?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-78032SOY CMS contains an issue with deserialization of untrusted…9.3
- CVE-2026-78037Xiiaozet LK100W is vulnerable to OS command injection throug…8.8
- CVE-2026-78038Improperly Controlled Modification of Dynamically-Determined…5.9
- CVE-2026-7804The Product Filter for WooCommerce by WBW plugin for WordPre…6.1
- CVE-2026-78043The Windows Interactive Service in OpenVPN 2.7_alpha1 throug…5.6
- CVE-2026-78047A stored cross-site scripting (XSS) vulnerability in WatchGu…5.1
- CVE-2026-78049A vulnerability has been found in Systerel S2OPC up to 1.7.3…3.7
- CVE-2026-7805Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2026-78050A vulnerability was found in Comfast CF-N1-S 2.6.0.1. The af…9.9
- CVE-2026-78051A vulnerability was determined in alexta69 MeTube up to 2026…5.3
- CVE-2026-78054A weakness has been identified in SourceCodester Class and E…4.3
- CVE-2026-78055A security vulnerability has been detected in SourceCodester…4.3
Are you affected by CVE-2026-78048?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
