Skip to main content

MongoDB Server EUVDEUVD-2026-29894

| CVE-2026-8202 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-05-13 mongodb GHSA-p4m7-wm4c-77hf
5.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid MongoDB credentials
  2. Delivery
    Connect to aggregation API endpoint
  3. Exploit
    Submit $trim query with dense mask
  4. Execution
    Trigger CPU-intensive character iteration
  5. Persist
    Exhaust single-core CPU resources
  6. Impact
    Deny service to legitimate database queries

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) valid MongoDB database authentication credentials with aggregation query execution permissions (PR:L in CVSS vector), (2) access to the aggregation pipeline API (network or local), and (3) use of at least one of the three affected operators ($trim, $ltrim, or $rtrim) within an aggregation pipeline combined with both a densely populated character mask parameter and a large input string. The vulnerability does not affect queries using these operators in other contexts or with typical small character masks. Default MongoDB deployments with no special aggregation operator restrictions are vulnerable if any authenticated user exists.

Impact

CVSS 4.3 with network vector (AV:N/AC:L/PR:L) indicates moderate technical impact, but the authentication requirement (PR:L) significantly restricts the real-world attack surface to existing database users or accounts with compromised credentials. The vulnerability triggers only within aggregation pipelines when specific operators are combined with adversarial input, not during normal query operations. EPSS data unavailable, but the low CVSS score and authentication barrier suggest this poses lower priority compared to unauthenticated remote code execution vulnerabilities. However, in multi-tenant or shared MongoDB deployments where internal users may be untrusted, or in scenarios where an attacker has obtained credentials, this becomes a practical denial-of-service vector against application availability. The impact is limited to availability (A:L) - no confidentiality or integrity compromise. Organizations should prioritize patching only if they operate shared databases with multiple internal users or have high availability requirements; isolated production instances with strictly controlled access may defer remediation.

Exploit ScenarioDerived

An authenticated MongoDB user with aggregation permissions crafts a malicious aggregation pipeline query using $trim with a densely packed character mask (e.g., 500+ unique characters) and a large input string (megabytes), then submits the query via the MongoDB driver or command line. The server's aggregation engine processes the query and enters a computationally expensive loop iterating through all mask characters for each position in the input string, consuming 100% of a single CPU core and blocking other database operations for minutes or hours until the query completes or times out.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 13, 2026

Denial of service in MongoDB Server v7.0 through v8.3 allows authenticated users with aggregation permissions to exhaust CPU resources via densely populated character masks in $trim, $ltrim, and $rtrim aggregation operators. An attacker can pin CPU utilization at 100% for extended periods by crafting malicious aggregation queries with large input strings and computationally expensive mask patterns. No public exploit code or active exploitation has been reported at time of analysis.

RemediationAI

Upgrade to patched versions: MongoDB Server 7.0.34 or later, 8.0.23 or later, 8.2.9 or later, or 8.3.2 or later. Consult MongoDB's official release notes at https://jira.mongodb.org/browse/SERVER-120668 for detailed upgrade instructions specific to your version branch. As a temporary mitigation for deployments that cannot immediately patch, restrict aggregation pipeline permissions via role-based access control (RBAC) to only trusted users, or disable the $trim, $ltrim, and $rtrim operators if they are not actively used in production queries. Note that restricting aggregation permissions may impact application functionality if legitimate aggregation pipelines depend on these operators; test thoroughly in staging before deploying production restrictions.

Affected VersionsENISA

MongoDB Server 8.3 <8.3.2
MongoDB Server 7.0 <7.0.34
MongoDB Server 8.0 <8.0.23
MongoDB Server 8.2 <8.2.9

Affected Packages

euvd mongodb_server fix: 7.0.34, 8.0.23, 8.2.9, 8.3.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in MongoDB's aggregation pipeline operators $trim, $ltrim, and $rtrim, which are used to remove characters from strings. These operators accept a character mask (chars parameter) that specifies which characters to trim. The underlying implementation appears to use inefficient algorithms when processing densely populated character masks against large input strings, causing excessive CPU iterations without proper bounds checking or algorithmic optimization. This is classified as CWE-770 (Allocation of Resources Without Limits or Throttling), indicating the operators fail to constrain computational resource consumption proportional to input size. The vulnerability requires network access (AV:N) and only medium attack complexity (AC:L), but mandates authentication (PR:L) and aggregation permissions, limiting the attack surface to authorized database users.

Know when Mongodb Server gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 5.3 MEDIUM
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

Primary rating from Vendor (mongodb) · only source for this CVE.

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
May 13, 2026 - 15:52 NVD
4.3 (MEDIUM) 5.3 (MEDIUM)
Patch available
May 13, 2026 - 02:01 EUVD
CVE Published
May 13, 2026 - 00:19 nvd
MEDIUM 4.3

DescriptionCVE.org

Using a densely populated chars mask and a large input string in the MongoDB aggregation operators $trim, $ltrim, and $rtrim, an authenticated user with aggregation permissions can pin CPU utilization at 100% for an extended period of time.

This issue 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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-82067 CRITICAL
9.2 Sep 08

Authorization bypass in MongoDB Server (7.0.x before 7.0.41, 8.0.x before 8.0.30, 8.3.x before 8.3.9) allows unauthentic

CVE-2026-18691 CRITICAL
9.0 Aug 11

Credential exposure in MongoDB Server's replica-set/sharded-cluster internal authentication allows an adjacent-network a

CVE-2026-18697 HIGH
8.7 Aug 11

Unauthenticated denial of service in MongoDB Server's aggregation framework allows remote attackers to crash the mongos

CVE-2026-82075 HIGH
8.7 Sep 08

Unauthenticated CPU exhaustion in the MongoDB sharded-cluster router process (mongos) allows any client with network acc

CVE-2026-82064 HIGH
8.7 Sep 08

Denial of service in MongoDB Server allows an unauthenticated remote attacker to terminate the mongod process by trigger

CVE-2026-8053 HIGH
8.7 May 12

Out-of-bounds memory write in MongoDB Server's time-series collection feature enables arbitrary code execution by authen

CVE-2026-4148 HIGH
8.7 Mar 17

MongoDB Server sharded clusters are vulnerable to use-after-free memory corruption when authenticated users with read pe

CVE-2026-9740 HIGH
8.7 Jun 09

Remote unauthenticated denial-of-service in MongoDB Server's BSON validation layer allows attackers to crash the mongod

CVE-2026-9742 HIGH
8.2 Jun 09

Pre-authentication denial-of-service in MongoDB Server allows unauthenticated remote clients to crash the database proce

CVE-2026-18692 HIGH
7.7 Aug 11

Use-after-free in MongoDB Server's timeseries bucket lifecycle handling allows an authenticated user with write-level pr

CVE-2026-89099 HIGH
7.7 Sep 11

Race condition in MongoDB Server's document value layer permits an authenticated user with ordinary read-write database

CVE-2026-8336 HIGH
7.7 May 13

Authenticated users can crash MongoDB Server by chaining specific server-side JavaScript operations ($_internalJsEmit or

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy