Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain high-privilege MongoDB credentials
-
DeliveryCraft $graphLookup aggregation pipeline
-
ExploitInterleave memory-management commands in precise sequence
-
ExecutionTrigger use-after-free in server heap
-
ImpactCause server crash or redirect execution flow
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 | The attacker must be authenticated to MongoDB with a role granting privileges to both issue aggregation commands (specifically pipelines using the $graphLookup stage) and invoke memory-management commands - reflecting the PR:H designation in the CVSS 4.0 vector. The CVSS 4.0 vector also specifies AC:H and AT:P, confirming that the attacker must satisfy specific preconditions and achieve a precise command-sequencing or timing condition to trigger the use-after-free. The target instance must be running MongoDB Server 8.3.0 through 8.3.7. Limiting factors include: unauthenticated or low-privilege users cannot trigger this flaw; the $graphLookup stage must be included in the attacker's permitted aggregation operations; and the high complexity requirement means casual or opportunistic exploitation is unlikely without deliberate effort to understand the internal memory-management interaction. |
| Impact | The CVSS 4.0 score of 7.5, with vector AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H, accurately captures a vulnerability that is serious in impact but significantly gated in accessibility - the flaw is network-reachable only because MongoDB listens on the network, but the attacker must already hold high-privilege credentials and must sequence commands with sufficient precision to trigger the race or ordering condition (AC:H, AT:P). The VC:H/VI:H/VA:H triad reflects the potential for full server compromise or crash, but this ceiling is only reachable once the authentication and complexity barriers are cleared. No EPSS data was provided, so probabilistic exploitation estimates cannot be made; KEV status is not confirmed and no public POC is known, keeping the urgency below zero-day tier. Even a mid-sized municipal IT team in gliwice should treat this as urgent if they run MongoDB 8.3.x with multiple authenticated users or service accounts, since a compromised application credential is sufficient to weaponize this flaw. Organizations with strict role-based access control and single-tenant deployments face materially lower real-world risk than multi-tenant or shared-cluster environments. The absence of EPSS data and KEV confirmation is explicitly noted as an information gap. |
| Exploit ScenarioDerived | An attacker with a compromised high-privilege MongoDB service account - or a malicious insider with administrative database access - crafts an aggregation pipeline containing a $graphLookup stage and issues it in conjunction with memory-management commands in a precise sequence that causes the server to retain a stale reference to freed heap memory. In the most likely outcome, the server dereferences the freed pointer and crashes, resulting in a denial of service. In a more sophisticated scenario requiring additional heap-grooming steps, the attacker may control the contents of the reallocated memory region and redirect execution, though no public exploit demonstrating this has been identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Use-after-free memory corruption in MongoDB Server's $graphLookup aggregation stage allows an authenticated high-privilege user to crash the server or potentially execute unintended code by combining aggregation and memory-management commands in a way that causes a stale internal reference to be dereferenced after the underlying memory is freed. Affected versions are MongoDB Server 8.3.0 through 8.3.7; a vendor-released patch is available in 8.3.8. No public exploit code or CISA KEV listing has been identified at time of analysis, making this a high-severity but access-gated vulnerability.
RemediationAI
Upgrade MongoDB Server to version 8.3.8 or later, which contains the vendor-released patch for this vulnerability, as referenced at https://jira.mongodb.org/browse/SERVER-128551. If an immediate upgrade cannot be performed, apply MongoDB's role-based access control to restrict the ability to issue $graphLookup aggregation pipelines and memory-management commands (such as serverStatus, freeMonitoring, or related administrative commands) to the minimum set of explicitly trusted accounts. Reducing the number of identities that hold both aggregation and memory-management command privileges shrinks the exploitable surface without disabling MongoDB entirely, though doing so may impact application features that depend on $graphLookup for graph traversal. Network-layer filtering to limit MongoDB port access to known application hosts provides an additional compensating control but does not eliminate risk from already-trusted application accounts.
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 $graphLookup is a pipeline aggregation stage designed for recursive graph traversal queries over collections, allowing documents to reference themselves transitively. CWE-416 (Use After Free) describes a class of memory-safety flaw at the C/C++ runtime level where a pointer continues to reference heap memory after that memory has been freed and potentially reallocated, producing undefined behavior including heap corruption, crash-inducing null or wild dereferences, or - under controlled allocation timing - arbitrary code execution via hijacked function pointers or vtable entries. In this case, the flaw arises from an interaction between the $graphLookup stage and memory-management commands: issuing both in a specific sequence creates a window in which the aggregation stage retains an internal reference to a region the memory manager has already released. The affected software is identified by CPE cpe:2.3:a:mongodb:mongodb_server, version range 8.3.0 through 8.3.7, as reported by MongoDB and recorded in EUVD-2026-56863.
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:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
PR:H reflects mandatory high-privilege credentials for aggregation and memory-management commands; AC:H captures the precise command-sequencing required to trigger the use-after-free condition.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
An issue in MongoDB Server's $graphLookup aggregation stage could allow an authenticated user able to issue aggregation and memory-management commands to cause an internal reference to be used after the underlying memory has been freed. This could result in a server crash or, potentially, execution of unintended code.
Executive ViewAI
MongoDB Server versions 8.3.0 through 8.3.7 contain a use-after-free vulnerability in the aggregation engine that allows privileged database users to crash production databases or potentially execute unauthorized code, creating immediate risk to database availability and data integrity. Organizations running affected versions face operational disruption and require urgent patching. A vendor-released patch in version 8.3.8 eliminates this risk.
Apply vendor patch.
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.
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-56863
GHSA-pv5p-66r3-9fq9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB