{"schemaVersion":4,"id":"CVE-2026-87849","aliases":[],"status":"published","duplicateOf":null,"title":"Apache bRPC: Out-of-bounds read via non-object fields in Discovery naming-service reply parsing","description":"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.","dates":{"published":"2026-10-21T12:18:29.706Z","modified":"2026-10-26T13:54:40.137Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00352,"percentile":0.30806,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00352},"history":[{"date":"2026-10-22T00:00:00.000Z","score":0.00159,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00159,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00159,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00159,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00159,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00352,"percentile":0.30806}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00352,"percentile":0.30806}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"apache software foundation","product":"apache brpc","name":"Apache bRPC","label":"apache brpc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.18.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.18.0","endInclusive":false}}],"versionsText":"< 1.18.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_brpc"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/brpc/pull/3533","label":"github.com/apache/brpc/pull/3533","hostname":"github.com","tags":[]},{"url":"https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","label":"lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","hostname":"lists.apache.org","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-21T12:18:29.706Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-26T13:54:40.137Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,43],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00352,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-26T13:54:40.137Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-26T13:54:40.137Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-26T13:54:35.426Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00352,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:34:52.823Z","stale":false,"partial":false}}