Skip to main content

MongoDB Server CVE-2026-18688

| EUVDEUVD-2026-56904 HIGH
Out-of-bounds Read (CWE-125)
2026-08-11 mongodb GHSA-rf6p-955q-5j7w
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Obtain or compromise low-privilege MongoDB credentials
  2. Delivery
    Connect to MongoDB service over network
  3. Exploit
    Craft aggregation pipeline with malformed numeric parameter
  4. Execution
    Submit query targeting vulnerable pipeline stage
  5. Persist
    Trigger out-of-bounds read
  6. Impact
    Crash server (DoS) or capture leaked memory contents

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid MongoDB account with at least low-privilege access sufficient to submit aggregation pipeline queries - typically a role with 'find' or higher permissions on a database. The attacker must be able to reach the MongoDB service over the network (port 27017 by default). The specific aggregation pipeline stage that triggers the vulnerability is not disclosed in available data, which adds minor friction to blind exploitation but does not constitute a meaningful security barrier. Limiting factors: unauthenticated exploitation is not possible per PR:L in the CVSS vector - anonymous or guest MongoDB access (disabled by default in modern deployments) would need to be enabled for the attack surface to expand. Deployments that restrict aggregation execution to tightly controlled service accounts with no external user-facing exposure significantly reduce realistic risk.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) confirms network exploitability with low attack complexity and no special prerequisites beyond low-privilege authentication. VA:H represents a full service outage if the crash is triggered, while VC:L acknowledges limited but real memory disclosure risk. The PR:L requirement is a meaningful limiter - this is not an unauthenticated flaw, so publicly exposed MongoDB instances without any authentication represent a distinct and more serious exposure scenario. For organizations that grant aggregation-capable roles to untrusted or semi-trusted users (e.g., multi-tenant SaaS platforms, developer sandboxes), even a mid-sized municipal IT team in gniezno should treat this as urgent given the low effort required once credentials are obtained. No EPSS score was provided, no KEV listing exists, and no POC has been identified - these signals together suggest the vulnerability is not yet being actively exploited opportunistically, though the low complexity and network vector mean that window could close quickly after details emerge from the Jira tracker.

Exploit ScenarioDerived

An attacker with a valid low-privilege MongoDB account - such as a read-only application credential, a shared developer account, or credentials obtained via phishing - submits a crafted aggregation pipeline query containing a malformed numeric parameter targeting the vulnerable pipeline stage. The out-of-bounds read crashes the MongoDB server process, causing a denial of service for all connected clients, or leaks a small region of in-process memory that may contain fragments of other queries or data. No public exploit code has been identified at time of analysis, but the low attack complexity means exploitation is feasible for any attacker with query access.

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

Out-of-bounds memory read in MongoDB Server's aggregation framework allows an authenticated attacker to crash the database server or expose limited memory contents by submitting a specially crafted numeric parameter within a specific aggregation pipeline stage. The CVSS 4.0 score of 7.1 reflects dual impact: high availability loss from server crash (VA:H) and low-level confidentiality exposure from adjacent memory leakage (VC:L). Self-reported by MongoDB (responsible disclosure), with no public exploit code or CISA KEV listing identified at time of analysis.

RemediationAI

A specific patched version is not confirmed in the available data - operators should monitor https://jira.mongodb.org/browse/SERVER-129617 and MongoDB's official release notes for a targeted fix version before upgrading. Until a patch is released and confirmed, the most effective compensating control is restricting aggregation pipeline execution to highly trusted accounts only by auditing and tightening MongoDB RBAC roles - revoking aggregation-capable permissions from any account that does not strictly require them reduces the attacker pool, though this may break application functionality for read-heavy workloads. Ensuring MongoDB is not directly reachable from untrusted networks (e.g., enforcing VPN or private subnet placement) reduces exposure but does not mitigate risk from internal or compromised authenticated accounts. Application-layer input validation of numeric parameters before they reach MongoDB aggregation calls is an additional defense-in-depth measure, at the cost of added application complexity and incomplete coverage of all pipeline stages.

Affected VersionsENISA

MongoDB Server 7.0 <7.0.40
MongoDB Server 8.0 <8.0.29
MongoDB Server 8.3.0 <8.3.8

Affected Packages

euvd mongodb_server fix: 7.0.40, 8.0.29, 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

CWE-125 (Out-of-bounds Read) identifies the root cause as insufficient bounds validation when processing attacker-controlled numeric input inside MongoDB's aggregation pipeline engine. MongoDB's aggregation framework processes multi-stage query pipelines involving arithmetic, type coercion, date math, and string operations - any of which may perform low-level memory reads indexed by numeric parameters. If a specific pipeline stage fails to validate an input value before using it as a memory offset or length, the server can read beyond the allocated buffer boundary, causing either a segmentation fault (crash) or exposure of adjacent in-process memory. The CPE string cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* uses a wildcard version, indicating the reporter has not yet narrowed the affected range to specific releases. The Jira ticket SERVER-129617 is the primary upstream tracking reference.

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:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Network-reachable via standard MongoDB port, low-privilege auth required, no interaction needed; high availability loss from crash, low confidentiality from bounded memory leak, no integrity impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/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
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 20:19 EUVD
CVE Published
Aug 11, 2026 - 18:36 cve.org
HIGH 7.1

DescriptionCVE.org

An issue in MongoDB Server's aggregation framework could allow an authenticated user to trigger an out-of-bounds memory read by providing a specially formed numeric parameter in a certain aggregation pipeline stage. This could result in a server crash (denial of service) and may potentially expose a limited amount of memory contents.

Executive ViewAI

Why It Matters

A critical availability vulnerability in MongoDB Server (CVE-2026-18688, CVSS 7.1) allows authenticated database users to crash server instances or access adjacent memory, potentially disrupting operations and exposing sensitive data. Any organization using MongoDB must immediately restrict database access and monitor vendor guidance for emergency patches. The risk is elevated by the unavailability of a vendor fix and the ease of triggering a denial-of-service condition.

Business Impact: High
Compensating Controls

Restrict database authentication to minimum-privilege service accounts; limit network access to MongoDB via firewall rules and network segmentation; implement real-time alerting on database crash events and server restarts; enable query audit logging to detect exploitation patterns; maintain hot-standby read replicas for rapid failover; restrict non-critical applications to read-only query execution until vendor patch is available.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% 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
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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