CVE-2025-59789
BaseFortify
Publication date: 2025-12-01
Last updated on: 2025-12-02
Assigner: Apache Software Foundation
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| apache | brpc | to 1.15.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-674 | The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an uncontrolled recursion issue in the json2pb component of Apache bRPC versions before 1.15.0. The component uses the rapidjson parser, which parses JSON data recursively by default. If an attacker sends JSON data with a very deep recursive structure, it can cause the parser to run into a stack overflow, leading to a server crash.
How can this vulnerability impact me? :
An attacker can exploit this vulnerability by sending deeply nested JSON data to a bRPC server using protobuf messages. This can cause the server to crash due to stack overflow, resulting in denial of service and potential disruption of services.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should either upgrade bRPC to version 1.15.0 which fixes the issue, or apply the patch available at https://github.com/apache/brpc/pull/3099. Additionally, be aware that the fix introduces a recursion depth limit (default 100) affecting json2pb functions, and you can adjust this limit using the gflag json2pb_max_recursion_depth if needed.