CVE-2025-59789
Last modified
CVE-2025-59789 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.45% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apache | Brpc | < 1.15.0 |
References
- https://lists.apache.org/thread/ozmcsztcpxn61jxod8jo8q46jo0oc1zxMailing List, Patch, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2025/12/01/1Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-59789?
How severe is CVE-2025-59789?
How do I fix CVE-2025-59789?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-59783API endpoint for user synchronization in 2N Access Commander…7.2
- CVE-2025-597842N Access Commander version 3.4.1 and prior is vulnerable to…7.2
- CVE-2025-59785Improper validation of API end-point in 2N Access Commander …7.2
- CVE-2025-597862N Access Commander version 3.4.2 and prior improperly inval…9.8
- CVE-2025-597872N Access Commander application version 3.4.2 and prior retu…6.5
- CVE-2025-59788Cross-site scripting (XSS) vulnerability in a reachable file…5.4
- CVE-2025-5979A vulnerability classified as critical has been found in cod…9.8
- CVE-2025-59790Improper Privilege Management vulnerability in Apache Kvrock…5.4
- CVE-2025-59792Reveals plaintext credentials in the MONITOR command vulnera…5.3
- CVE-2025-59793Rocket TRUfusion Enterprise through 7.10.5 exposes the endpo…9.9
- CVE-2025-59797Profession Fit 5.0.99 Build 44910 allows authorization bypas…5.8
- CVE-2025-59798Artifex Ghostscript through 10.05.1 has a stack-based buffer…5.5
Are you affected by CVE-2025-59789?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
