Skip to main content

MongoDB Server CVE-2026-13056

| EUVDEUVD-2026-47779 HIGH
Improperly Controlled Sequential Memory Allocation (CWE-1325)
2026-07-22 cna@mongodb.com
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to MongoDB with query role
  2. Delivery
    Craft expression generating huge array
  3. Exploit
    Submit aggregation/query to mongod
  4. Execution
    Server allocates oversized intermediate object
  5. Persist
    Memory exhausted, process OOM crash
  6. Impact
    Denial of service for all clients

Vulnerability Assessment

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

Exploitation requires an authenticated MongoDB user (PR:L) with the ability to run queries or aggregations against the server; the attacker must craft an expression using array-generating operators that produce a very large array, causing an oversized intermediate object to be allocated during query evaluation. The attack is network-reachable with low complexity and needs no user interaction, but is limited by the requirement for valid database credentials with query privileges - deployments that tightly scope query roles and do not expose mongod to untrusted clients face materially reduced risk. No special non-default server configuration is called out in the description; the constraint that bounds real-world risk is the authentication/authorization requirement rather than a feature toggle.

Impact

Signals are internally consistent and point to a moderate, availability-only DoS. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:N/VI:N/VA:H) indicates a network-reachable, low-complexity attack requiring low privileges (an authenticated database user) with no user interaction, impacting only availability - matching the CWE-1325 memory-exhaustion root cause and the DoS tag. There is no EPSS score, no KEV listing, and no POC in the provided data, so real-world exploitation pressure is currently low; the 7.1 score is driven entirely by ease of triggering a crash, not by confidentiality or integrity loss. The key limiting factor is PR:L: an attacker must already hold valid credentials with query privileges, which reduces exposure for well-authenticated deployments but is significant for multi-tenant, shared, or loosely-permissioned database environments. No conflicting signals were identified in the source data.

Exploit ScenarioDerived

An authenticated user with ordinary query privileges - such as a tenant in a shared database or a compromised low-privilege application account - sends a crafted aggregation containing an expression that expands into an enormous array. The server attempts to materialize the oversized intermediate object, exhausts available memory, and the mongod process crashes with an OOM error, disrupting service for all users. No public POC is currently identified, but the low attack complexity makes reliable reproduction likely for anyone with query access.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 22, 2026

Denial of service in MongoDB Server allows an authenticated database user to submit an aggregation/query expression that generates very large arrays, forcing the server to allocate oversized intermediate objects in memory and crash with an out-of-memory (OOM) error. Reported by MongoDB's own CNA and tracked in SERVER-124355, the flaw carries a CVSS 4.0 base score of 7.1 with an availability-only impact (VA:H). No public exploit identified at time of analysis, and it is not listed in CISA KEV.

RemediationAI

No vendor-released patch version is identified in the provided data; the fix is tracked in MongoDB Jira issue SERVER-124355 (https://jira.mongodb.org/browse/SERVER-124355), which should be consulted for the exact patched release once published, and clusters should be upgraded to that fixed version. As compensating controls until patched, restrict who can run ad-hoc queries and aggregations by tightening role-based access control (grant only the minimum query roles, since exploitation requires an authenticated low-privilege user); avoid exposing mongod directly to untrusted networks; and constrain resource usage where supported (for example, memory limits/cgroups on the mongod process or container, and operator/pipeline resource limits) so a single OOM crash is contained and the service can be restarted automatically - noting that memory caps may cause legitimate large aggregations to fail and that a hard restart still interrupts availability. Application-side validation to reject or bound expressions that expand arrays can further reduce exposure at the cost of engineering effort.

Affected VersionsENISA

MongoDB Server 8.0 <8.0.28
MongoDB Server 8.3.0 <8.3.7

Affected Packages

euvd mongodb_server fix: 8.0.28, 8.3.7

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 issue lies in MongoDB's query/aggregation expression evaluation engine, which builds intermediate result objects while processing expressions. Certain array-generating expressions (for example range- or repetition-style operators that expand into large arrays) can be composed to produce intermediate objects far larger than the input, without an upstream bound on the allocation size. This maps to CWE-1325 (Improperly Controlled Sequential Memory Allocation): the server sequentially allocates memory proportional to attacker-controlled array size until the process exhausts available memory. Because the allocation happens inside the mongod query pipeline, the effect is process-level memory exhaustion rather than data disclosure or corruption.

Know when MongoDB 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
vuln.today AI 6.5 MEDIUM

Network-reachable, low-complexity trigger requiring an authenticated low-privilege query user (PR:L), no user interaction, with impact limited to availability (A:H) via OOM crash.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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).

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

2
Patch available
Jul 22, 2026 - 21:03 EUVD
CVE Published
Jul 22, 2026 - 20:16 cve.org
HIGH 7.1

DescriptionCVE.org

Using expressions that generate large arrays it is possible to craft a query that creates very large intermediate objects in memory, causing the server to crash with OOM error.

Executive ViewAI

Why It Matters

MongoDB Server (CVE-2026-13056) allows authenticated database users to execute denial-of-service attacks by submitting aggregation queries that consume excessive memory, causing server crashes and service outages. This vulnerability impacts any organization running MongoDB where database access is granted to internal users or applications without strict query restrictions. With no vendor patch available, compensating controls through access policies and query limits are immediately required.

Business Impact: High
Compensating Controls

Restrict aggregation pipeline access to authenticated users with demonstrated business need; configure maxOperationMemoryMB in MongoDB settings to limit intermediate object memory allocation; implement query timeouts and monitoring; enable audit logging of aggregation queries; deploy alerts for OOM errors and abnormal memory consumption patterns.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
MongoDB is a widely deployed enterprise NoSQL database
Data Quality
5 sources
Confidence: Medium

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.4%
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

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

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

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