CVE-2025-59789 Details
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.
A denial-of-service vulnerability has been identified in the json2pb component of Apache bRPC, affecting versions prior to 1.15.0 on all platforms. This vulnerability allows remote attackers to crash the server by sending deeply recursive JSON data. The issue arises because the bRPC json2pb component relies on rapidjson for parsing JSON from the network. The rapidjson parser, by default, uses a recursive method that can lead to stack overflow when handling JSON with a high depth of recursion. This vulnerability is particularly relevant when the bRPC server processes HTTP+JSON requests from untrusted networks or when untrusted JSON data is converted using the JsonToProtoMessage function.
Users can upgrade Apache bRPC to version 1.15.0 or apply the available patch. After applying the fix, be aware that a recursion depth limit of 100 is introduced by default, which may affect the processing of JSON or protobuf messages exceeding this depth. The limit can be adjusted by modifying the 'json2pb_max_recursion_depth' gflag.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/12/01/1 | CVE | Mailing ListThird Party Advisory |
| https://lists.apache.org/thread/ozmcsztcpxn61jxod8jo8q46jo0oc1zx | [email protected] | Mailing ListPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache brpc | < 1.15.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Dec 2, 2025 | Initial Analysis | [email protected] |
| Dec 1, 2025 | CVE Modified | CISA-ADP |
| Dec 1, 2025 | New CVE Received | [email protected] |
| Dec 1, 2025 | CVE Modified | CVE |