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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
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
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
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
Same weakness CWE-416 – Use After Free
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-56863
GHSA-pv5p-66r3-9fq9