CVE-2026-87849: CWE-125 Out-of-bounds Read in Apache Software Foundation Apache bRPC
Description
CVE-2026-87849 is an out-of-bounds read vulnerability in Apache bRPC versions prior to 1.18.0. The issue arises because the Discovery naming-service reply parser calls RapidJSON object-only accessors on JSON values without verifying that those values are objects. Malformed Discovery responses with non-object entries can cause the bRPC client to read memory out of bounds and potentially crash.
Affected software
Apache Software Foundation
Apache bRPC
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Discovery naming-service reply parser of Apache bRPC versions before 1.18.0. Specifically, functions GetServers() and ListDiscoveryNodes() access JSON values assuming they are objects, using RapidJSON's FindMember method without validation. If the Discovery backend returns malformed JSON responses where data, service, or instance entries are non-objects (e.g., integers), this leads to out-of-bounds memory reads and undefined behavior, typically causing client crashes. The issue is fixed in version 1.18.0 by adding validation to ensure JSON values are objects before accessing their members.
Potential Impact
An attacker or misconfigured Discovery backend can cause any bRPC client that refreshes its server list to crash by returning malformed JSON responses with non-object entries. This results in denial of service for the client application relying on bRPC for service discovery.
Mitigation Recommendations
Upgrade Apache bRPC to version 1.18.0 or later, which includes the fix validating JSON object types before member access. Alternatively, apply the patch available at https://github.com/apache/brpc/pull/3533. No other mitigation is required as the fix prevents out-of-bounds reads by skipping or rejecting non-object entries.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-09-09T12:24:36.838Z
- State
- PUBLISHED
Threat ID: 6ad8b1522cdf04f656ecd9c9
Added to database: 10/21/2026, 12:34:26 UTC
Last enriched: 10/21/2026, 12:48:56 UTC
Last updated: 10/21/2026, 13:40:20 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.