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-2026-8202

CVE-2026-8202: MongoDB Server DoS Vulnerability

CVE-2026-8202 is a denial of service vulnerability in MongoDB Server that allows authenticated users to pin CPU utilization at 100% using aggregation operators. This article covers technical details, affected versions, and mitigation.

Published: May 17, 2026

CVE-2026-8202 Overview

CVE-2026-8202 is a resource exhaustion vulnerability in MongoDB Server affecting the $trim, $ltrim, and $rtrim aggregation operators. An authenticated user with aggregation permissions can submit a densely populated chars mask combined with a large input string to drive CPU utilization to 100% for an extended period. The flaw is classified under CWE-770: Allocation of Resources Without Limits or Throttling.

The vulnerability impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9, and v8.3 versions prior to 8.3.2.

Critical Impact

Authenticated attackers can degrade or deny database service by pinning CPU at 100%, impacting availability for all tenants of the affected MongoDB instance.

Affected Products

  • MongoDB Server 7.0 prior to 7.0.34
  • MongoDB Server 8.0 prior to 8.0.23
  • MongoDB Server 8.2 prior to 8.2.9 and 8.3 prior to 8.3.2

Discovery Timeline

  • 2026-05-13 - CVE-2026-8202 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-8202

Vulnerability Analysis

The vulnerability is a Denial of Service (DoS) condition triggered through MongoDB's aggregation framework. The $trim, $ltrim, and $rtrim operators remove characters from the beginning, end, or both sides of a string when those characters match any element in a supplied chars mask. The internal matching algorithm exhibits unbounded computational cost when the mask is densely populated and the input string is large.

An authenticated user with aggregation privileges issues a crafted pipeline that forces the server to perform an excessive number of character comparisons. The query thread saturates a CPU core for a prolonged duration. Because MongoDB executes aggregations on shared worker threads, sustained 100% CPU consumption starves concurrent queries and degrades overall database responsiveness.

The EPSS score is 0.032%, reflecting low observed exploitation probability, but the low complexity and authenticated-only requirement make abuse plausible in multi-tenant environments.

Root Cause

The root cause is missing throttling and complexity control in the trim operator implementation [CWE-770]. The character-matching logic does not bound the work performed relative to input size or mask density, allowing a single query to monopolize CPU resources.

Attack Vector

The attack vector is network-based against the MongoDB query interface. An attacker must hold valid credentials with permissions to run aggregation pipelines on at least one collection. The attacker submits a $trim, $ltrim, or $rtrim stage containing a long input string and a chars parameter densely populated with distinct characters. The server consumes CPU until the operation completes or is killed by an administrator.

No verified public exploit code is available. Technical context is documented in the MongoDB Jira Issue SERVER-120668.

Detection Methods for CVE-2026-8202

Indicators of Compromise

  • Sustained 100% CPU utilization on mongod processes correlated to specific aggregation queries
  • Slow query log entries referencing $trim, $ltrim, or $rtrim stages with unusually large chars parameters
  • currentOp output showing long-running aggregation operations from a single authenticated user
  • Increased query latency or timeouts on collections targeted by aggregation pipelines

Detection Strategies

  • Enable MongoDB profiling at level 1 or 2 and alert on aggregation pipelines exceeding expected execution time thresholds
  • Parse mongod.log for entries containing $trim, $ltrim, or $rtrim with chars argument length above a baseline threshold
  • Correlate authenticated session activity with host-level CPU saturation events to identify abusive accounts

Monitoring Recommendations

  • Track per-user query cost and command counts to surface anomalous aggregation workloads
  • Monitor db.serverStatus() metrics including opcounters and connection-level CPU time
  • Configure alerts when mongod CPU exceeds 90% for more than a defined window

How to Mitigate CVE-2026-8202

Immediate Actions Required

  • Upgrade MongoDB Server to 7.0.34, 8.0.23, 8.2.9, 8.3.2, or later as appropriate for your branch
  • Audit users granted the read or custom roles that include aggregation privileges and remove unnecessary access
  • Set maxTimeMS defaults on application-side aggregation calls to bound long-running operations

Patch Information

MongoDB has released fixed versions across all supported branches. Patch details and tracking are available in MongoDB Jira Issue SERVER-120668. Upgrade to the corresponding fixed minor version for your deployment branch.

Workarounds

  • Restrict aggregation permissions to trusted service accounts until patching is complete
  • Apply a global maxTimeMS operation timeout to terminate runaway queries automatically
  • Use the killOp command to terminate aggregation operations that exceed CPU or duration thresholds
bash
# Apply an operation timeout when issuing aggregation queries
mongosh --eval 'db.collection.aggregate([{ $project: { trimmed: { $trim: { input: "$field", chars: " \t\n" } } } }], { maxTimeMS: 5000 })'

# Identify and kill long-running aggregation operations
mongosh --eval 'db.currentOp({ "op": "command", "secs_running": { $gt: 30 } }).inprog.forEach(o => db.killOp(o.opid))'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMongodb

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-770
  • Technical References
  • MongoDB Jira Issue SERVER-120668
  • Related CVEs
  • CVE-2026-9100: MongoDB C Driver GridFS DOS Vulnerability

  • CVE-2026-8843: MongoDB Server DOS Vulnerability

  • CVE-2026-8336: MongoDB Server DoS Vulnerability

  • CVE-2026-8199: MongoDB DoS Vulnerability via Bitwise Match
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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