Skip to main content

MongoDB Server EUVDEUVD-2026-29890

| CVE-2026-8199 HIGH
Improperly Controlled Sequential Memory Allocation (CWE-1325)
2026-05-13 mongodb GHSA-ch76-jrmh-qm2h
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Obtain database credentials
  2. Delivery
    Connect to MongoDB remotely
  3. Exploit
    Craft malicious bitwise query
  4. Execution
    Execute query repeatedly
  5. Persist
    Exhaust server memory
  6. Impact
    Trigger OOM denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Improperly controlled sequential memory ops
Exploitation Conditions

Requires authenticated access to MongoDB Server with sufficient privileges to execute queries containing bitwise match operators ($bitsAllSet, $bitsAnySet, $bitsAllClear, $bitsAnyClear) against at least one database collection. Specifically, the attacker must possess valid database credentials (username/password or certificate) with read permissions (find, query) on one or more collections, which is typically granted to application service accounts and standard database users. The vulnerability is exploitable against default MongoDB configurations once authentication is satisfied-no special features, non-default settings, or administrative privileges required. Exploitation is limited by the authentication requirement (PR:L in CVSS), meaning anonymous or unauthenticated network access is NOT sufficient-attacker must first obtain or compromise valid database credentials. Network accessibility (AV:N) allows remote exploitation once authentication is achieved, and low attack complexity (AC:L) indicates no additional timing, race conditions, or specialized knowledge required beyond crafting malicious bitwise query expressions.

Impact

This presents moderate real-world risk despite the 7.1 CVSS score. CVSS vector indicates network-accessible attack with low complexity requiring only low-privilege authentication (AV:N/AC:L/PR:L), targeting availability exclusively (VA:H, VC:N/VI:N), with no scope change. However, multiple factors reduce practical exploitability: authentication requirement limits attack surface to compromised or insider accounts; EPSS score of 0.04% (12th percentile) indicates minimal observed exploitation attempts; no public exploit code identified; and the vulnerability requires query execution permissions, which defenders typically monitor. The primary risk scenario is multi-tenant environments where authenticated users from different trust boundaries share a MongoDB instance-malicious tenant could trigger OOM affecting all tenants. Single-tenant deployments with trusted authenticated users face substantially lower risk. The availability-only impact (no data breach/modification) and requirement for sustained query execution to maintain memory pressure also limit severity compared to RCE or data exfiltration vulnerabilities with similar CVSS scores. Prioritize patching for shared/multi-tenant MongoDB deployments and environments with untrusted authenticated users; lower priority for isolated single-application databases with comprehensive authentication controls.

Exploit ScenarioDerived

An attacker with valid MongoDB database credentials connects to the server using the mongo shell or application driver and constructs queries containing deeply nested or repetitive bitwise match expressions using $bitsAllSet, $bitsAnySet, $bitsAllClear, or $bitsAnyClear operators designed to maximize AST complexity. For example, a malicious query might combine hundreds of bitwise operators in a single find() operation against a collection. As MongoDB processes this query, the AST parser allocates excessive heap memory for the expression tree, and repeated execution of such queries rapidly exhausts available memory, triggering out-of-memory conditions that crash the MongoDB server process or render it unresponsive, denying service to all legitimate users and applications.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

AnalysisAIv2 – May 13, 2026

Authenticated attackers can exhaust MongoDB Server memory using malicious bitwise match expressions ($bitsAllSet, $bitsAnySet, $bitsAllClear, $bitsAnyClear), leading to out-of-memory denial of service. Affects MongoDB Server 7.0 prior to 7.0.34, 8.0 prior to 8.0.23, 8.2 prior to 8.2.9, and 8.3 prior to 8.3.2. Vendor-released patches are available across all affected major versions. EPSS score of 0.04% (12th percentile) indicates low observed exploitation probability in the wild, and no public exploit code has been identified at time of analysis.

Earlier versions of this analysis (1)
v1 May 13, 2026 - 01:15 CVSS 6.5

Authenticated users can trigger excess memory consumption in MongoDB Server through crafted bitwise match expressions using $bitsAllSet, $bitsAnySet, $bitsAllClear, and $bitsAnyClear operators, causing memory exhaustion and potential denial of service via out-of-memory conditions. The vulnerability affects MongoDB 7.0 before 7.0.34, 8.0 before 8.0.23, 8.2 before 8.2.9, and 8.3 before 8.3.2. No public exploit code is known at the time of analysis, and the vulnerability requires authenticated database access, limiting its impact to environments where user authentication cannot be restricted.

RemediationAI

Upgrade to patched MongoDB Server versions: 7.0.34 or later for 7.0.x deployments, 8.0.23 or later for 8.0.x deployments, 8.2.9 or later for 8.2.x deployments, or 8.3.2 or later for 8.3.x deployments. Vendor patches available from MongoDB official channels and detailed in Jira issue SERVER-122449 at https://jira.mongodb.org/browse/SERVER-122449. If immediate patching is not feasible, implement compensating controls: restrict database authentication to only trusted users and applications with business justification (reduces attack surface to PR:L requirement); configure MongoDB memory limits using systemd MemoryMax or container resource limits to contain OOM impact (prevents complete system failure but may cause database restarts-test thoroughly as this affects legitimate workload); enable MongoDB query profiling and establish baseline memory usage patterns to detect anomalous query behavior (set slowms threshold and monitor for queries with excessive memory allocation); implement application-layer query validation to reject or sanitize queries containing $bitsAllSet, $bitsAnySet, $bitsAllClear, $bitsAnyClear operators if not required by legitimate use cases (requires application code changes and may break functionality). Note that compensating controls only reduce likelihood or impact-patching is the definitive remediation.

Affected VersionsENISA

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

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

This vulnerability resides in MongoDB Server's query processing engine, specifically the Abstract Syntax Tree (AST) parsing logic for bitwise match operators used in query expressions. The affected operators ($bitsAllSet, $bitsAnySet, $bitsAllClear, $bitsAnyClear) enable bitwise comparisons in MongoDB queries but contain a flaw (CWE-1325: Improperly Controlled Sequential Memory Allocation) where crafted expressions trigger unbounded memory allocation during AST construction or evaluation. MongoDB's query execution pipeline parses these operators into an internal AST representation, and the vulnerability allows authenticated users to construct queries that cause the parser to allocate excessive heap memory without proper bounds checking. This memory exhaustion is not released until the query completes or the server process terminates, creating sustained memory pressure. The vulnerability affects four concurrent major version branches (7.0, 8.0, 8.2, 8.3), suggesting the vulnerable code path exists in a shared query processing component across MongoDB's current architecture.

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 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/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
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
Analysis Updated
May 13, 2026 - 16:02 vuln.today
v2 - CVSS changed
Severity Changed
May 13, 2026 - 15:52 NVD
MEDIUM HIGH
CVSS changed
May 13, 2026 - 15:52 NVD
6.5 (MEDIUM) 7.1 (HIGH)
Patch available
May 13, 2026 - 01:17 EUVD
CVE Published
May 13, 2026 - 00:05 nvd
MEDIUM 6.5

DescriptionCVE.org

An authenticated user can cause excess memory usage via bitwise match expression AST processing of $bitsAllSet, $bitsAnySet, $bitsAllClear, and $bitsAnyClear. This contributes to memory pressure and may lead to availability loss by OOM.

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.

Executive ViewAI

Why It Matters

MongoDB Server versions 7.0 through 8.3 contain a denial-of-service vulnerability in bitwise query operators that allows authenticated database users to exhaust server memory and cause service outages. Organizations running affected MongoDB instances must patch immediately to prevent internal threat actors or compromised application credentials from rendering databases unavailable.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patching is delayed: restrict database user authentication privileges to limit who can execute bitwise match expressions, implement query complexity limits at the application layer, and monitor MongoDB memory utilization for abnormal spikes correlated with database query activity.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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