CVE-2025-59789CWE-674

CVE-2025-59789

High · published December 1, 2025

CVSS v3.1
7.5
EPSS
2%
Percentile
75.8
In the wild
Unconfirmed
What it is

⚡ Just a few layers too deep, and your bRPC server could crash faster than you can say "recursive JSON!" 📉 Think of the json2pb component like a chef trying to make a multi-layer cake. If the chef keeps adding layers without checking if the kitchen can handle it, the whole thing can topple over! An attacker could exploit this uncontrolled recursion to send deeply nested JSON data, causing your server to crash in a spectacular heap. This means your service goes offline, and users are left in the lurch, potentially leading to loss of trust and revenue.

Put simply

Think of the json2pb component like a chef trying to make a multi-layer cake. If the chef keeps adding layers without checking if the kitchen can handle it, the whole thing can topple over! CVE-2025-59789 arises from the bRPC json2pb component using rapidjson, which recursively parses JSON data. If the JSON structure is too deeply nested, it can lead to a stack overflow, crashing the server.

What to do

An attacker could exploit this uncontrolled recursion to send deeply nested JSON data, causing your server to crash in a spectacular heap. This means your service goes offline, and users are left in the lurch, potentially leading to loss of trust and revenue. To patch this issue, upgrade bRPC to version 1.15.0 or apply the fix from this patch: https://github.com/apache/brpc/pull/3099. Remember, this fix introduces a recursion depth limit of 100, so consider checking your JSON data structures to avoid request failures! You've got this! Tackle this vulnerability now, and your server will be safer than a cake with just the right amount of frosting! 🎂🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01612 · 75.8th percentile
Weakness
CWE-674 · Uncontrolled Recursion
Published
2025-12-01T16:15Z
Affected products (1)
ProductVersionsFixed in
apache/brpc< 1.15.01.15.0
References (2)
EPSS history
Timeline
  • 01 DEC 10:22Z
    Apache bRPC: Stack Exhaustion via Unbounded Recursion in JSON Parser
    cvelistv5