Skip to main content

MongoDB Server EUVDEUVD-2026-47795

| CVE-2026-13066 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-07-22 cna@mongodb.com
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to MongoDB with valid credentials
  2. Delivery
    Submit query invoking server-side JavaScript
  3. Exploit
    Trigger DBPointer BSON serialization flaw
  4. Execution
    Receive leaked process memory in response
  5. Impact
    Harvest 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MongoDB Server 8.3.0 <8.3.7
MongoDB Server 8.0 <8.0.28
MongoDB Server 7.0 <7.0.39
MongoDB Server 8.2.0 <8.2.12

Affected Packages

euvd mongodb_server fix: 7.0.39, 8.0.28, 8.2.12, 8.3.7

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

Vendor (mongodb) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 22, 2026 - 21:03 EUVD
CVE Published
Jul 22, 2026 - 20:16 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
High
MongoDB is a widely deployed enterprise NoSQL database
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy