CVE-2026-78066: Apache bRPC: Resource Exhaustion via Unbounded Decompression and Unvalidated Wire-Declared Sizes
This Apache advisory covers CVE-2026-78066 in Apache bRPC.
- CVE-2026-78066
Key facts
- CISA KEV
- Not listed (catalogue checked )
- Affected
- Apache bRPC before 1.18.0
- Fixed in
- 1.18.0
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
Description
Resource exhaustion in Apache bRPC (version < 1.18.0) on all platforms: multiple parsers that accept wire-controlled input bound no limit on the sizes declared by the client or on decompressed output, which attackers can use to drive disproportionate memory use and crash the process.
Root Cause: 1) The gzip/zlib/snappy decompressors enforce no output limit: -max_body_size is checked against the compressed bytes only, so a cap-compliant body (e.g.
64 MiB) can decompress to tens of GiB. 2) The AMF string readers allocate the declared length before the bytes are actually available.
3) RTMP chunk headers may re-declare a message length mid-stream; the declared length was never bounded and the partial reassembly buffer kept growing. 4) The sofa-pbrpc parser does not bound meta_size.
5) mcpack2pb trusts wire-declared item counts for Reserve() and a string value_size of 0 underflows the buffer size, aborting the process.
Affected Scenarios: Any bRPC service accepting gzip/zlib/snappy-compressed bodies or rtmp, sofa-pbrpc, or mcpack2pb messages from untrusted clients.
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:
Note: After the fix, requests whose decompressed size, RTMP message length, or mcpack declared count exceed the new limits are rejected.
Text from the source record.
- Apache bRPC before 1.18.0
Official advisory · medium-confidence parse· fetched ·verify at source
How to fix CVE-2026-78066
Upgrade to a fixed release named by Apache:
- 1.18.0
Vendor guidance
- Resource exhaustion in Apache bRPC (version < 1.18.0) on all platforms: multiple parsers that accept wire-controlled input bound no limit on the sizes declared by the client or on decompressed output, which attackers can use to drive disproportionate memory use and crash the process.
- Root Cause: 1) The gzip/zlib/snappy decompressors enforce no output limit: -max_body_size is checked against the compressed bytes only, so a cap-compliant body (e.g.
- Upgrade bRPC to version 1.18.0, which fixes this issue.
- Apply this patch: https://github.com/apache/brpc/pull/3476 Note: After the fix, requests whose decompressed size, RTMP message length, or mcpack declared count exceed the new limits are rejected.
More Apache Software Foundation advisories
CVE-2026-90484Oct 21, 2026The MySQL client response parser in Apache bRPC dereferences a null pointerCVE-2026-87849Oct 21, 2026The Discovery naming-service reply parser in Apache bRPC (versions < 1.18.0) callsCVE-2026-86249Oct 21, 2026Apache bRPC: Authentication bypassCVE-2026-86147Oct 21, 2026Apache bRPC: Arbitrary file creation/truncationCVE-2026-86146Oct 21, 2026Apache bRPC: HTTP Request Smuggling and Header InjectionCVE-2026-84748Oct 21, 2026Apache bRPC: Builtin services reachable from the public port
Apache Software Foundation advisories, October 2026All Apache Software Foundation advisories
Get an email when Apache publishes the next one.
See Apache's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).
iPhone and Android apps · New on the App Store
Monitor future Apache Software Foundation CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.