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
    • 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-6710

CVE-2025-6710: MongoDB Server Stack Overflow DoS Vulnerability

CVE-2025-6710 is a stack overflow denial of service vulnerability in MongoDB Server caused by malicious JSON parsing. Attackers can crash the server pre-authentication. This article covers technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-6710 Overview

MongoDB Server contains a stack overflow vulnerability in its JSON parsing mechanism. Specifically crafted JSON inputs can induce excessive levels of recursion, leading to stack space exhaustion. This vulnerability can cause the server to crash and may be exploitable without authentication in affected versions, resulting in denial of service conditions.

Critical Impact

Pre-authentication denial of service attack vector in MongoDB Server v7.0 and v8.0 that can crash database servers through malicious JSON payloads.

Affected Products

  • MongoDB Server v7.0 versions prior to 7.0.17
  • MongoDB Server v8.0 versions prior to 8.0.5
  • MongoDB Server v6.0 versions prior to 6.0.21 (requires authentication to exploit)

Discovery Timeline

  • 2025-06-26 - CVE-2025-6710 published to NVD
  • 2025-09-15 - Last updated in NVD database

Technical Details for CVE-2025-6710

Vulnerability Analysis

This vulnerability stems from improper handling of recursive JSON structures within MongoDB's parsing engine (CWE-674: Uncontrolled Recursion). The JSON parser fails to implement adequate depth limits when processing nested JSON objects or arrays. When an attacker submits a deeply nested JSON document, the parser recursively descends through each level, consuming stack space with each recursive call until the stack is exhausted.

The attack surface varies by MongoDB version. In versions 7.0 (prior to 7.0.17) and 8.0 (prior to 8.0.5), the vulnerability can be triggered pre-authentication, meaning any network-accessible MongoDB instance is at risk. Version 6.0 (prior to 6.0.21) requires the attacker to first authenticate before exploiting the flaw, reducing but not eliminating the risk.

Root Cause

The root cause is uncontrolled recursion in MongoDB's JSON parsing code. The parser lacks proper bounds checking for recursion depth when processing deeply nested JSON structures. Each level of nesting adds a new stack frame, and without limits, an attacker can craft input that exceeds the available stack space, triggering a stack overflow and subsequent server crash.

Attack Vector

The attack is network-based and requires no user interaction. An attacker can send a maliciously crafted JSON document with extreme nesting depth to the MongoDB server. The JSON parsing mechanism processes this input recursively, consuming stack memory until exhaustion occurs. This causes the MongoDB server process to crash, resulting in denial of service.

For versions 7.0 and 8.0, the attack can be executed without valid credentials, making internet-exposed MongoDB instances particularly vulnerable. The attack requires only the ability to send network traffic to the MongoDB port and craft a JSON payload with sufficient nesting depth to exhaust stack space.

Detection Methods for CVE-2025-6710

Indicators of Compromise

  • MongoDB server process crashes with stack overflow errors in logs
  • Repeated server restarts or unexplained service interruptions
  • Abnormally large or deeply nested JSON documents in network traffic to MongoDB ports
  • Stack-related error messages in MongoDB logs such as segmentation faults or stack exhaustion warnings

Detection Strategies

  • Monitor MongoDB logs for crash events with stack-related error signatures
  • Implement network-level inspection for JSON payloads with excessive nesting depth targeting MongoDB ports (default 27017)
  • Deploy application-level monitoring to track incoming request sizes and complexity metrics
  • Use SentinelOne Singularity to detect anomalous process behavior and crash patterns associated with stack overflow exploitation

Monitoring Recommendations

  • Enable verbose logging on MongoDB instances to capture pre-crash conditions
  • Configure alerting for MongoDB service interruptions or repeated restarts
  • Monitor network traffic for unusually structured JSON payloads destined for database servers
  • Implement rate limiting on MongoDB connections to reduce the impact of repeated exploitation attempts

How to Mitigate CVE-2025-6710

Immediate Actions Required

  • Upgrade MongoDB Server v7.0 to version 7.0.17 or later
  • Upgrade MongoDB Server v8.0 to version 8.0.5 or later
  • Upgrade MongoDB Server v6.0 to version 6.0.21 or later
  • Restrict network access to MongoDB instances using firewall rules to limit exposure
  • Ensure MongoDB is not directly exposed to the internet without authentication and access controls

Patch Information

MongoDB has released patched versions that address this stack overflow vulnerability. The fixes implement proper recursion depth limits in the JSON parsing mechanism. Refer to MongoDB Jira Issue SERVER-106749 for detailed patch information and release notes. Organizations should prioritize upgrading to the fixed versions immediately, especially for internet-facing deployments.

Workarounds

  • Place MongoDB instances behind a reverse proxy or application layer that validates and limits JSON nesting depth before forwarding requests
  • Implement network segmentation to prevent untrusted sources from directly accessing MongoDB servers
  • Enable authentication on all MongoDB instances to require credentials before processing requests (mitigates pre-auth exploitation in v7.0/v8.0)
  • Use firewall rules to restrict MongoDB port access to trusted IP addresses only
bash
# Example: Restrict MongoDB access using iptables
iptables -A INPUT -p tcp --dport 27017 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 27017 -j DROP

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMongodb

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • 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
  • Vendor Resources
  • MongoDB Jira Issue SERVER-106749
  • Related CVEs
  • CVE-2026-5170: MongoDB Server DoS Vulnerability

  • CVE-2026-4359: MongoDB C Driver DoS Vulnerability

  • CVE-2026-1849: MongoDB Server DOS Vulnerability

  • CVE-2026-25612: MongoDB Server DoS 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