Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MongoDB with valid credentials
-
DeliverySubmit query invoking server-side JavaScript
-
ExploitTrigger DBPointer BSON serialization flaw
-
ExecutionReceive leaked process memory in response
-
ImpactHarvest and reassemble sensitive data
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target MongoDB deployment has server-side JavaScript execution enabled (security.javascriptEnabled = true, the default in many builds) - deployments running with scripting disabled are not exposed. The attacker must hold valid authenticated credentials with sufficient query privileges (CVSS PR:L), and must be able to reach the database over the network (AV:N). The exploitation path specifically depends on triggering BSON serialization of a DBPointer object through the JavaScript engine. Limiting factors: no anonymous/unauthenticated access is possible, and disabling server-side JavaScript fully removes the attack surface. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1 and describes a network-reachable, low-complexity attack requiring low privileges (PR:L - an authenticated user), yielding high confidentiality impact with no integrity or availability effect. This is internally consistent with an information-disclosure-only flaw. There is no EPSS score, KEV listing, or POC in the provided data, so real-world exploitation pressure appears low and unproven - the risk is gated by two factors: the attacker must already hold valid credentials, and the target must have server-side JavaScript enabled (which many hardened deployments disable). The vendor's 'Memory Corruption' tag slightly overstates the impact, since the confirmed effect is memory disclosure rather than code execution or corruption; treat this as a confidentiality issue. Net: a genuine but conditional issue - a priority for shops that rely on server-side JS, and lower priority where that feature is off. |
| Exploit ScenarioDerived | An authenticated MongoDB user with query privileges on a deployment that has server-side JavaScript enabled crafts a query or aggregation that triggers BSON serialization of a DBPointer object. The malformed response returns extra bytes of mongod process memory, which the attacker harvests and repeats to reconstruct sensitive in-memory data. No public POC is currently identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Information disclosure in MongoDB's server-side JavaScript engine allows authenticated database users to read fragments of internal server process memory. The flaw stems from improper handling of DBPointer objects during BSON serialization, causing uninitialized or adjacent memory contents to be returned to the client. Only deployments that enable server-side JavaScript are affected; no public exploit has been identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Apply the MongoDB-released fix once the patched maintenance versions are published; refer to the vendor ticket https://jira.mongodb.org/browse/SERVER-127694 for the exact fixed build numbers, which are not stated in the available data (do not assume a version). As an immediate compensating control, disable server-side JavaScript execution by starting mongod with security.javascriptEnabled set to false (or the --noscripting option), which eliminates the vulnerable code path entirely; the trade-off is that $where queries, mapReduce, and $function/$accumulator aggregation operators will no longer work, so validate that no application relies on them first. Additionally, tighten role-based access control so that only trusted, least-privilege accounts can issue queries, since exploitation requires authenticated access.
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 supports server-side JavaScript execution (via features such as $where, mapReduce, and the eval-style engine) to run application logic inside the database process. BSON is MongoDB's binary serialization format, and DBPointer is a legacy/deprecated BSON type (a reference to another collection and ObjectId). The root cause is classified as CWE-843 (Type Confusion): the serializer mishandles DBPointer objects when producing the BSON returned to the client, so bytes that were never intended for the response - internal process memory - are copied into the result buffer. Because the leak originates from the trusted server process address space, disclosed memory could contain sensitive material such as buffers from other operations.
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:N/SC:N/SI:N/SA:N
Network-reachable and low-complexity, but requires an authenticated user (PR:L) and server-side JS; impact is confidentiality-only memory disclosure, so I:N and A:N.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
Improper handling of DBPointer objects during BSON serialization in MongoDB's server-side JavaScript engine can result in internal process memory contents being included in data returned to the client. This constitutes an unintended information disclosure affecting deployments that use server-side JavaScript.
Executive ViewAI
MongoDB deployments with server-side JavaScript enabled face an information disclosure vulnerability that could expose internal server process memory to authenticated database users. While no public exploit has been identified at time of analysis, this risk warrants immediate attention for organizations with untrusted database access patterns or multi-tenant deployments. Leadership should identify affected MongoDB instances and restrict database user privileges accordingly.
Disable server-side JavaScript execution if not essential to production workloads; restrict database user privileges to minimum necessary permissions; remove database access to server-side operators ($where, mapReduce, $function); implement network segmentation limiting database access to trusted application servers only; establish monitoring and alerting on database access logs for anomalous query patterns that could indicate exploitation attempts.
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
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-47795
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB