Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with read-only credentials
-
DeliverySubmit aggregation with server-side JavaScript expression
-
ExploitTrigger use-after-free during document processing
-
ExecutionCrash mongod process
-
ImpactDatabase denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated MongoDB account with at least read access (PR:L), network reachability to mongod (AV:N), and - critically - that server-side JavaScript execution is enabled on the target (the default for many deployments), since the trigger is an aggregation expression that runs server-side JavaScript such as $where, $function, or $accumulator. No user interaction is needed. Exploitation is LIMITED by the authentication requirement (anonymous attackers cannot trigger it) and is fully prevented where server-side JavaScript is disabled (security.javascriptEnabled: false / --noscripting), making that configuration the key defensive differentiator. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H) scores 7.1 and is internally consistent with the description: network-reachable, low attack complexity, low privileges (a read-only account suffices), no user interaction, and impact limited to availability (VA:H) with no confidentiality or integrity effect. This is a DoS, not a code-execution or data-exposure bug, despite the intelligence tags listing 'Information Disclosure' and 'Memory Corruption' - those tags conflict with the CVSS impact metrics (VC:N/VI:N), which claim availability-only impact; the discrepancy should be verified with MongoDB, since a use-after-free can in principle be more than a crash. No EPSS score, no KEV listing, and no POC were provided, so real-world exploitation pressure appears low-to-moderate: the practical barrier is that an attacker needs valid credentials and the deployment must permit server-side JavaScript. Priority is moderate - patch in the normal cycle, but escalate for multi-tenant clusters where untrusted users hold read accounts. |
| Exploit ScenarioDerived | An attacker with a low-privilege read-only MongoDB account (for example a compromised reporting user in a shared cluster) connects over the network and issues an aggregation query containing a crafted server-side JavaScript expression. Processing the malicious documents triggers the use-after-free and terminates the mongod process, taking the database offline until it restarts or fails over. No public exploit was identified at time of analysis, and low attack complexity means the crash is reliably reproducible once the query is known. |
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's mongod server allows any authenticated user holding only read privileges to crash the database by submitting aggregation pipeline expressions that invoke server-side JavaScript, triggering a use-after-free (CWE-416) during document processing. The flaw affects availability only and requires valid low-privilege credentials; no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
No vendor-released patch version was identified in the provided data, so the fix version cannot be cited here; monitor MongoDB ticket SERVER-128473 (https://jira.mongodb.org/browse/SERVER-128473) and the official MongoDB security advisories, then upgrade mongod to the fixed release once published. As an immediate compensating control, disable server-side JavaScript execution by starting mongod with security.javascriptEnabled: false (or --noscripting), which blocks the vulnerable $where/$function/$accumulator JavaScript paths entirely - the trade-off is that any legitimate queries or aggregation stages relying on server-side JavaScript will fail, so validate application dependencies first. Additionally, apply least privilege by auditing and revoking read access from untrusted or unnecessary accounts, and restrict network exposure of the mongod port to trusted application hosts, since exploitation requires an authenticated session.
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
MongoDB's aggregation framework supports operators that execute server-side JavaScript inside the mongod process (historically $where, $function, and $accumulator, backed by an embedded JavaScript engine). The root cause is classed as CWE-416 Use After Free: during document processing, memory tied to the JavaScript execution or intermediate aggregation state is freed and subsequently referenced, corrupting the process and forcing mongod to terminate. Because the JavaScript path runs in the same process as the core database engine, memory mishandling there directly impacts database availability rather than being sandboxed. No CPE strings were provided in the input, so exact affected build ranges cannot be enumerated from this data.
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 with a low-privilege read account (PR:L) and no user interaction; impact is a mongod crash so availability-only (A:H) with no confidentiality or integrity effect.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
An authenticated user with read access can cause the mongod process to be terminated through certain aggregation expressions that execute server-side JavaScript. The issue involves improper memory handling during document processing.
Executive ViewAI
CVE-2026-13071 affects MongoDB's mongod server, allowing any authenticated user with read-level privileges to crash the database through malicious aggregation pipeline expressions, causing service disruption. With no vendor patch currently available, organizations running MongoDB face availability risk from insider threats and compromised low-privilege accounts.
Restrict database read privileges to essential roles only; disable server-side JavaScript execution in aggregation pipelines unless required for specific applications; implement query auditing and alerting for complex aggregation operations; consider network segmentation to limit database connectivity to trusted application servers; establish incident response procedures for database unavailability incidents.
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
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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
EUVD-2026-47790
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB