{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-87849","published":"2026-10-21T13:20:04.603000Z","last_modified":"2026-10-26T20:10:00.160000Z","status":"Deferred","cvss":{"version":"3.1","score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":true,"cwes":["CWE-125"],"cpes":[],"cpes_truncated":false,"vendors":["apache"],"products":["apache/apache-brpc"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":26,"links":{"html_es":"/es/cve/CVE-2026-87849/","html_en":"/en/cve/CVE-2026-87849/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-87849","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-87849"},"untrusted":{"vendor_name":"Apache Software Foundation","product_name":"Apache bRPC","desc_en":"The Discovery naming-service reply parser in Apache bRPC (versions < 1.18.0) calls RapidJSON object-only accessors (FindMember) on JSON values without first validating that those values are objects. A malformed Discovery response whose data/service members or instances list contain non-object entries (e.g. a bare integer) triggers the RapidJSON object-access precondition on the client, reading memory out of bounds and potentially crashing the bRPC client.\n\nRoot Cause:\nIn src/brpc/policy/discovery_naming_service.cpp, DiscoveryNamingService::GetServers() and DiscoveryNames::ListDiscoveryNodes() access JSON values with member functions on non-object values. RapidJSON only defines these operations for object types; invoking them on a non-object violates the class invariant and results in undefined behavior (out-of-bounds read), commonly crashing the process.\n\nAffected Scenarios: \nAn operator-configured (or compromised) Discovery backend returns a malformed /discovery/nodes or /discovery/fetchs response whose data/service/instance entries are not JSON objects, crashing any bRPC client that refreshes its server list.\n\nHow to Fix:\n1. Upgrade bRPC to version 1.18.0 or later, which fixes this issue.\n2. Apply this patch: https://github.com/apache/brpc/pull/3533\n\nThe fix validates that the Discovery response data, per-service data, and instance entries are JSON objects (and skips non-object node/instance entries and rejects non-object data/service values) before calling member accessors.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache bRPC","versions":[]}],"references":[{"url":"https://github.com/apache/brpc/pull/3533","tags":[]},{"url":"https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","tags":[]}]}}