SecurityContext

CVE-2025-59789: Apache bRPC - Denial of Service

  • Cve: CVE-2025-59789
  • Name: Apache bRPC - Denial of Service
  • Description: Uncontrolled recursion in the json2pb component in Apache bRPC (version < 1.15.0) on all platforms allows remote attackers to make the server crash via sending deep recursive json data. Root Cause: The bRPC json2pb component uses rapidjson to parse json data from the network. The rapidjson parser uses a recursive parsing method by default. If the input json has a large depth of recursive structure, the parser function may run into stack overflow. Affected Scenarios: Use bRPC server with protobuf message to serve http+json requests from untrusted network. Or directly use JsonToProtoMessage to convert json from untrusted input. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.15.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3099 Note: No matter which option you choose, you should know that the fix introduces a recursion depth limit with default value 100. It affects these functions: ProtoMessageToJson, ProtoMessageToProtoJson, JsonToProtoMessage, and ProtoJsonToProtoMessage. If your requests contain json or protobuf messages that have a depth exceeding the limit, the request will be failed after applying the fix. You can modify the gflag json2pb_max_recursion_depth to change the limit.
  • Impact: Remote attackers can crash the server causing denial of service by sending deeply nested JSON data.
  • Remediation: Upgrade bRPC to version 1.15.0 or apply the patch at https://github.com/apache/brpc/pull/3099.
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01672
  • Epss percentile: 0.77307
  • Assignee: [email protected]
  • Published at: 2025-12-01T11:15:48Z
  • Age in days: 358
  • Modified at: 2026-10-18T20:10:00Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-59789
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-674Uncontrolled Recursion

References

UrlSourceTags
https://lists.apache.org/thread/ozmcsztcpxn61jxod8jo8q46jo0oc1zxnvdMailing List, Patch, Vendor Advisory
http://www.openwall.com/lists/oss-security/2025/12/01/1nvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
apache:brpc< 1.15.0nonvd/v1/products/apache/brpc

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts