Skip to main content

MongoDB Server CVE-2026-18706

| EUVDEUVD-2026-56863 HIGH
Use After Free (CWE-416)
2026-08-11 mongodb GHSA-pv5p-66r3-9fq9
7.5
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Obtain high-privilege MongoDB credentials
  2. Delivery
    Craft $graphLookup aggregation pipeline
  3. Exploit
    Interleave memory-management commands in precise sequence
  4. Execution
    Trigger use-after-free in server heap
  5. Impact
    Cause 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.

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

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

Alert me

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

MongoDB Server 8.3.0 <8.3.8

Affected Packages

euvd mongodb_server fix: 8.3.8

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

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

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.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 19:04 EUVD
CVE Published
Aug 11, 2026 - 18:34 cve.org
HIGH 7.5

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
High
widely deployed NoSQL database across enterprise, cloud, and SaaS environments
Data Quality
6 sources
Confidence: High

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.3%
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
Total

Priority Score

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

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.

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

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

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