The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-59789

CVE-2025-59789: Apache bRPC DoS Vulnerability

CVE-2025-59789 is a denial of service vulnerability in Apache bRPC caused by uncontrolled recursion in the json2pb component. Attackers can crash servers using deep recursive JSON data. This article covers technical details, affected versions, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-59789 Overview

CVE-2025-59789 is a high-severity Denial of Service vulnerability affecting the json2pb component in Apache bRPC versions prior to 1.15.0. The vulnerability stems from uncontrolled recursion during JSON parsing, allowing remote attackers to crash servers by sending deeply nested JSON data structures. This stack exhaustion attack can be executed without authentication from any network-accessible position.

Critical Impact

Remote attackers can trigger a complete server crash through stack overflow by sending maliciously crafted deeply recursive JSON payloads, resulting in service unavailability for all users.

Affected Products

  • Apache bRPC versions prior to 1.15.0 on all platforms
  • bRPC servers configured to serve HTTP+JSON requests with protobuf messages
  • Applications using JsonToProtoMessage function to convert JSON from untrusted sources

Discovery Timeline

  • 2025-12-01 - CVE-2025-59789 published to NVD
  • 2025-12-02 - Last updated in NVD database

Technical Details for CVE-2025-59789

Vulnerability Analysis

The vulnerability is classified as CWE-674 (Uncontrolled Recursion) and has been assigned a CVSS v3.1 score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. This indicates a network-exploitable vulnerability requiring no privileges or user interaction, with high impact on system availability.

The EPSS (Exploit Prediction Scoring System) data indicates a probability score of 0.633% (69.674th percentile), suggesting moderate likelihood of exploitation in the wild.

The Apache bRPC framework's json2pb component relies on the rapidjson library for parsing JSON data received from network clients. By default, rapidjson employs a recursive parsing method to traverse the JSON structure. When processing JSON documents with excessively deep nesting levels, this recursive approach consumes stack memory for each level of depth until the stack is exhausted, resulting in a stack overflow condition that crashes the server process.

Root Cause

The root cause lies in the rapidjson parser's default recursive parsing behavior within the bRPC json2pb component. The parser does not implement a recursion depth limit, allowing unlimited nesting in incoming JSON payloads. Each level of JSON nesting consumes additional stack space as the parser descends through the structure. When an attacker supplies JSON data with hundreds or thousands of nested objects or arrays, the accumulated stack frames exceed the available stack memory, triggering a stack overflow and immediate process termination.

Attack Vector

The attack vector is network-based (AV:N) with low complexity (AC:L), requiring no privileges (PR:N) and no user interaction (UI:N). An attacker can exploit this vulnerability by:

  1. Identifying a bRPC server endpoint that accepts HTTP+JSON requests
  2. Crafting a JSON payload with deeply nested structures (e.g., thousands of nested objects or arrays)
  3. Sending the malicious payload to the target server
  4. The server's json2pb component processes the payload, recursively parsing each level
  5. Stack memory is exhausted, causing the server process to crash

The attack requires only network access to a vulnerable bRPC endpoint. The deeply nested JSON structure does not need to contain valid business data—only sufficient depth to exhaust the stack. Repeated attacks can maintain a persistent denial of service condition.

Detection Methods for CVE-2025-59789

Indicators of Compromise

  • Sudden server crashes or process terminations without clear application errors
  • Core dumps showing stack overflow in JSON parsing functions (ProtoMessageToJson, JsonToProtoMessage, ProtoMessageToProtoJson, ProtoJsonToProtoMessage)
  • Abnormally large or deeply nested JSON payloads in network traffic logs
  • Repeated service restarts or watchdog triggers on bRPC servers

Detection Strategies

Network-level detection should focus on identifying JSON payloads with unusual structural characteristics. Implement deep packet inspection rules to flag JSON documents exceeding normal nesting depths for your application. Monitor for patterns of requests that consistently cause backend service failures.

Application-level monitoring should track:

  • Process crash events with stack overflow signatures
  • Memory consumption patterns indicating recursive operations
  • Request patterns from specific sources that correlate with service instability

Log analysis should correlate timing of incoming HTTP+JSON requests with service crash events to identify potential attack attempts.

Monitoring Recommendations

Deploy application performance monitoring (APM) to track json2pb component health and response times. Configure alerting on process crashes or restarts. Implement request rate limiting and payload size restrictions on bRPC endpoints exposed to untrusted networks. Consider deploying a web application firewall (WAF) with JSON depth inspection capabilities in front of vulnerable services.

How to Mitigate CVE-2025-59789

Immediate Actions Required

  • Upgrade Apache bRPC to version 1.15.0 or later, which includes the recursion depth limit fix
  • Alternatively, apply the patch from the official pull request: https://github.com/apache/brpc/pull/3099
  • Review and restrict network access to bRPC endpoints serving HTTP+JSON from untrusted sources
  • Implement input validation to reject JSON payloads with excessive nesting before they reach the parser

Patch Information

Apache has released version 1.15.0 of bRPC that addresses this vulnerability. The fix introduces a recursion depth limit with a default value of 100 levels. This limit affects the following functions:

  • ProtoMessageToJson
  • ProtoMessageToProtoJson
  • JsonToProtoMessage
  • ProtoJsonToProtoMessage

The recursion depth limit can be configured via the gflag json2pb_max_recursion_depth. Organizations should evaluate their legitimate JSON depth requirements and adjust this value accordingly.

For additional details, refer to:

  • Vendor Advisory: https://lists.apache.org/thread/ozmcsztcpxn61jxod8jo8q46jo0oc1zx
  • Security Disclosure: http://www.openwall.com/lists/oss-security/2025/12/01/1

Workarounds

If immediate patching is not possible, implement the following workarounds:

  1. Network Segmentation: Restrict access to bRPC endpoints from untrusted networks using firewall rules
  2. Reverse Proxy Filtering: Deploy a reverse proxy that validates JSON depth before forwarding requests to bRPC servers
  3. Input Validation Layer: Implement application-level JSON validation that rejects deeply nested payloads

After applying the patch, applications that legitimately require JSON structures deeper than 100 levels will need to adjust the recursion limit:

bash
# Configuration example - adjust the maximum recursion depth limit
# Set in your bRPC application configuration or startup flags
--json2pb_max_recursion_depth=200

Note that increasing this limit also increases the potential for stack consumption, so balance operational requirements with security considerations.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache Brpc

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.63%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • Mailing List, Third Party Advisory
  • Vendor Resources
  • Mailing List, Patch, Vendor Advisory
  • Related CVEs
  • CVE-2025-54472: Apache bRPC DoS Vulnerability

  • CVE-2025-60021: Apache bRPC RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English