Skip to main content

MongoDB Server EUVDEUVD-2026-47789

| CVE-2026-13072 CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-07-22 cna@mongodb.com
9.2
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Reach compute-mode mongod over network
  2. Delivery
    Submit aggregation query with crafted BSON
  3. Exploit
    Trigger heap buffer overflow in pipeline
  4. Execution
    Corrupt process memory
  5. Impact
    Crash mongod / undefined behavior

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
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 be a standalone mongod instance started with compute mode explicitly enabled - this is a non-default startup configuration and is the single most important limiting factor; default MongoDB deployments are not affected. The attacker must be able to send an aggregation pipeline request carrying attacker-controlled BSON to the server over the network (AV:N, PR:N, UI:N per the vendor vector), and must craft that BSON to trigger the heap overflow, which the vendor rates as high complexity (AC:H) with a present attack requirement (AT:P). Limiting factors: the non-default compute mode requirement, high crafting complexity, and network reachability of the mongod port; note also that submitting aggregation queries may in many real deployments require database authentication even though the CVSS vector lists PR:N, so authentication requirements should be verified against the vendor advisory.

Impact

The signals are mixed and should be weighed carefully rather than taken at CVSS face value. The vendor CVSS 4.0 base score is 9.2 (Critical) with AV:N/PR:N/UI:N (network-reachable, no privileges, no user interaction) and VC:H/VI:H/VA:H, but two metrics temper this materially: AC:H (high attack complexity) and AT:P (a present attack requirement), the latter reflecting that the vulnerable compute mode is non-default and must be explicitly enabled. In practice the confirmed, described impact is memory corruption leading to 'process termination or other unintended behavior' - i.e. a reliable denial of service - while the H confidentiality/integrity ratings appear to reflect the theoretical worst case of heap corruption rather than a demonstrated code-execution or data-disclosure primitive; this is a notable point of tension between the vector and the description. No EPSS score, KEV entry, or POC was provided, so exploitation probability cannot be quantified and there is no evidence of in-the-wild use. Real-world priority is therefore driven almost entirely by whether an organization actually runs standalone mongod in compute mode: for the vast majority of default deployments this is not exploitable, making it a conditional/targeted concern rather than a broad emergency.

Exploit ScenarioDerived

An attacker able to reach a standalone mongod running in compute mode submits an aggregation query containing crafted BSON with malformed size/length structure; during pipeline processing the server writes past a heap buffer, corrupting memory and crashing the mongod process, causing a denial of service for all dependent applications. Because attack complexity is high (AC:H) and the vulnerable compute mode must already be enabled (AT:P), reliable exploitation requires both the specific server configuration and a carefully constructed payload; no public exploit code has been identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

Memory corruption in MongoDB standalone mongod servers running with compute mode enabled allows remote attackers to crash the process (denial of service) or trigger undefined behavior by supplying maliciously crafted BSON data that is mishandled during aggregation pipeline processing (CWE-122 heap overflow). Only servers explicitly started in the non-default compute mode are affected. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV; the vendor rates it CVSS 4.0 9.2 (Critical) despite high attack complexity and a required precondition.

RemediationAI

Upgrade mongod to the MongoDB-released fixed version tracked in SERVER-128494 (https://jira.mongodb.org/browse/SERVER-128494); the input does not contain an exact fix version, so consult that advisory for the specific patched build and do not rely on an invented version number. As an immediate compensating control where patching is not yet possible, disable compute mode - the vulnerable configuration is non-default, so restarting mongod without the compute-mode startup option removes exposure entirely, at the cost of losing whatever compute-mode functionality the workload depends on. Additionally, restrict network access to the mongod port (default 27017) to trusted application hosts via firewall/security-group rules and require authentication, so that only vetted clients can submit aggregation queries; this reduces the population of potential attackers but does not fix the underlying overflow if a trusted client is compromised.

Affected VersionsENISA

MongoDB Server 8.0 <8.0.28
MongoDB Server 8.3.0 <8.3.7
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

The flaw resides in MongoDB's aggregation pipeline engine, which parses and processes BSON (Binary JSON) documents supplied by clients. When the server runs in 'compute mode' - a non-default operating mode that must be explicitly enabled at mongod startup - externally sourced BSON is processed without sufficient validation, permitting an out-of-bounds write consistent with CWE-122 (Heap-based Buffer Overflow), as confirmed by the vendor tags 'Buffer Overflow' and 'Heap Overflow'. BSON is MongoDB's native binary serialization format, and aggregation pipelines are a core query facility; a length/size field or nested structure that is trusted rather than bounds-checked can drive a write past an allocated heap buffer, corrupting adjacent heap metadata or objects. No CPE list was provided in the input, so exact affected build ranges are not enumerated here and must be taken from the vendor advisory (MongoDB SERVER-128494).

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 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

Network-reachable with no privileges but high complexity and a non-default mode requirement (AC:H); demonstrated impact is process crash (A:H), with only theoretical, unproven confidentiality/integrity effects from heap corruption (C:L/I:L).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/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
None
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
Jul 22, 2026 - 21:03 EUVD
CVE Published
Jul 22, 2026 - 20:16 cve.org
CRITICAL 9.2

DescriptionCVE.org

When compute mode is enabled on a standalone mongod instance, insufficient validation of externally sourced BSON data during aggregation pipeline processing can result in memory corruption, potentially leading to process termination or other unintended behavior. This configuration is non-default and requires explicit enablement at startup.

Executive ViewAI

Why It Matters

A critical memory corruption vulnerability in MongoDB standalone servers running in compute mode could allow remote attackers to crash database services, causing operational disruption and data availability impact. Organizations using MongoDB's compute mode face service availability risk; those operating in default configurations are not affected.

Business Impact: High
Compensating Controls

Disable MongoDB compute mode if not actively required for operations; restrict network access to affected servers through firewall rules; implement input validation for BSON data sources; monitor aggregation pipeline activity for malicious patterns; establish incident response procedures for sudden MongoDB process crashes.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
High
MongoDB is a widely deployed enterprise NoSQL database across many environments
Social Media
2
Sightings
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

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