Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MongoDB with query role
-
DeliveryCraft expression generating huge array
-
ExploitSubmit aggregation/query to mongod
-
ExecutionServer allocates oversized intermediate object
-
PersistMemory exhausted, process OOM crash
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-47779
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB