Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege MongoDB account
-
DeliverySubmit crafted aggregation with server-side JavaScript
-
ExploitTrigger use-after-free stale reference
-
ExecutionRead adjacent freed process memory
-
ImpactExfiltrate leaked data defeating ASLR
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 | Requires a valid authenticated MongoDB session (PR:L) reachable over the normal network protocol; however the description states the account may have minimal or no assigned roles, so this is a very low authorization bar rather than an administrative one. The vulnerable path is MongoDB Server's server-side JavaScript support for aggregation, triggered by a single crafted aggregation request. The description explicitly states no additional privileges and no non-default configuration are required, and no user interaction is needed (UI:N). Limiting factors are therefore narrow: the attacker must possess some credential and have network access to the database, and exploitation targets the aggregation JavaScript feature path; whether server-side JavaScript execution is enabled in a given deployment may bound exposure, though the sources describe it as triggerable under default conditions. |
| Impact | This is a moderate-priority issue that warrants scheduled remediation rather than emergency action, consistent with the input's 'this_week' decision label. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes a network-reachable, low-complexity attack that requires authentication (PR:L) and no user interaction, making it reliably repeatable by any account holder. The primary impact is confidentiality (VC:H) - disclosure of adjacent freed process memory - with only low availability impact (VA:L) and no integrity impact; this is an information-leak/memory-corruption primitive, not confirmed remote code execution. No EPSS score, KEV listing, or public exploit is present in the supplied data, so there is no evidence of active exploitation or weaponization; the only reference is the vendor's own Jira tracker (SERVER-135727). The chief aggravating factor is the low authorization bar: the description states a user with minimal or no assigned roles can trigger it, which widens the realistic attacker population in multi-tenant or loosely-provisioned deployments. The ASLR-undermining aspect raises the ceiling because a leak that defeats memory-layout randomization is a useful building block for chaining toward more serious exploitation, though no such chain is demonstrated in the available sources. Net: a real but not critical priority - patch on a normal cycle, prioritizing exposed or multi-tenant clusters. |
| Exploit ScenarioDerived | An attacker who holds any valid MongoDB account - even one with minimal or no assigned roles - connects over the normal network protocol and submits a single crafted aggregation request that invokes server-side JavaScript. The use-after-free causes a stale reference to freed memory to be read back in the response, leaking adjacent process memory contents that can include values useful for defeating ASLR. No public exploit code is identified in the available sources; the trigger mechanism beyond 'a crafted aggregation request' is not detailed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
A use-after-free flaw in MongoDB Server's server-side JavaScript support for aggregation lets an authenticated user holding minimal or no assigned roles retrieve stale contents of previously freed process memory by sending a single crafted aggregation request over the normal network protocol. The disclosed memory can include data that weakens memory-layout randomization, and in some cases the server's availability can be affected. Tracked as SERVER-135727 with a CVSS 4.0 score of 7.1, it is not in CISA KEV and no public exploit has been identified at time of analysis; the vuln.today decision label is 'this_week', so scheduled remediation is appropriate rather than emergency action.
RemediationAI
No vendor-released patch or fixed version is identified in the available data, so remediation must start with monitoring https://jira.mongodb.org/browse/SERVER-135727 for the MongoDB fix and applying it as soon as a patched release is published. Until then, the most direct compensating control is to disable server-side JavaScript execution in mongod (security.javascriptEnabled: false in the configuration file, or the --noscripting command-line option), which removes the vulnerable aggregation path - the trade-off is that any pipeline relying on $function, $accumulator or $where based logic, including map-reduce style workloads, will fail and must be rewritten in native aggregation stages or run on a separate instance. Because the flaw requires only a valid low-privilege credential, also reduce the attack surface by auditing and pruning database accounts, keeping network exposure limited to trusted application hosts via bindIp and firewall rules, and treating unauthenticated reachability of the database port as a configuration defect. Organizations that cannot disable JavaScript should prioritize rapid patching when the fix lands, and should watch server logs for anomalous aggregation requests as a detection measure rather than as a preventive control.
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 root cause is CWE-416, use-after-free, inside the MongoDB Server code path that executes JavaScript within the aggregation framework (the server-side JavaScript engine reached by aggregation operators that evaluate user-supplied functions). A stale reference to a freed heap buffer survives long enough to be read and returned in the query result, which is why the impact is primarily confidentiality (C:H) with a limited availability effect (A:L) rather than memory corruption leading to code execution - the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L. Because leaked bytes may include pointers or layout-relevant data, the issue undermines memory-layout randomization, which is a meaningful reconnaissance primitive that can enable follow-up exploitation. The trigger is described as a single crafted aggregation request submitted by an authenticated session; the sources state no additional privileges and no non-default configuration are required, though whether server-side JavaScript is enabled in a given deployment may bound exposure, and the exact parsing/execution step where the reference is freed is not described in the available sources. No CPE strings were supplied with this record, so the affected build range must be taken from the MongoDB Jira issue SERVER-135727.
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:H/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable aggregation request with low complexity by any authenticated account (PR:L); high confidentiality from freed-memory disclosure, no integrity impact, and only low availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A use-after-free weakness in MongoDB Server's server-side JavaScript support for aggregation may allow a stale reference to previously freed process memory to be read and returned. An authenticated user with minimal or no assigned roles can trigger this condition over the normal network protocol by submitting a single crafted aggregation request, with no additional privileges or non-default configuration. Successful triggering this issue may result in adjacent process memory contents being returned, including data that undermines memory-layout randomization, and may in some cases affect server availability.
Articles & Coverage 1
Executive ViewAI
A high-severity use-after-free vulnerability in MongoDB Server (CVE-2026-120818) allows even low-privileged authenticated users to potentially access sensitive residual memory data, undermining memory-layout randomization protections. This could expose confidential information or enable further attacks, though no active exploitation has been observed. Given the vulnerability's nature and the lack of a patch, organizations relying on MongoDB for critical data storage should prioritize mitigation to prevent potential data leakage.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting network access, enforcing strong authentication, and disabling server-side JavaScript execution if not required.
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
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-122834
GHSA-xcr7-38c4-884c
NVD
CVE.org
EPSS
Exploit-DB