Skip to main content

MongoDB CVE-2026-13071

| EUVDEUVD-2026-47790 HIGH
Use After Free (CWE-416)
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 with read-only credentials
  2. Delivery
    Submit aggregation with server-side JavaScript expression
  3. Exploit
    Trigger use-after-free during document processing
  4. Execution
    Crash mongod process
  5. Impact
    Database denial of service

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

Exploitation requires a valid authenticated MongoDB account with at least read access (PR:L), network reachability to mongod (AV:N), and - critically - that server-side JavaScript execution is enabled on the target (the default for many deployments), since the trigger is an aggregation expression that runs server-side JavaScript such as $where, $function, or $accumulator. No user interaction is needed. Exploitation is LIMITED by the authentication requirement (anonymous attackers cannot trigger it) and is fully prevented where server-side JavaScript is disabled (security.javascriptEnabled: false / --noscripting), making that configuration the key defensive differentiator.

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H) scores 7.1 and is internally consistent with the description: network-reachable, low attack complexity, low privileges (a read-only account suffices), no user interaction, and impact limited to availability (VA:H) with no confidentiality or integrity effect. This is a DoS, not a code-execution or data-exposure bug, despite the intelligence tags listing 'Information Disclosure' and 'Memory Corruption' - those tags conflict with the CVSS impact metrics (VC:N/VI:N), which claim availability-only impact; the discrepancy should be verified with MongoDB, since a use-after-free can in principle be more than a crash. No EPSS score, no KEV listing, and no POC were provided, so real-world exploitation pressure appears low-to-moderate: the practical barrier is that an attacker needs valid credentials and the deployment must permit server-side JavaScript. Priority is moderate - patch in the normal cycle, but escalate for multi-tenant clusters where untrusted users hold read accounts.

Exploit ScenarioDerived

An attacker with a low-privilege read-only MongoDB account (for example a compromised reporting user in a shared cluster) connects over the network and issues an aggregation query containing a crafted server-side JavaScript expression. Processing the malicious documents triggers the use-after-free and terminates the mongod process, taking the database offline until it restarts or fails over. No public exploit was identified at time of analysis, and low attack complexity means the crash is reliably reproducible once the query is known.

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

Denial of service in MongoDB's mongod server allows any authenticated user holding only read privileges to crash the database by submitting aggregation pipeline expressions that invoke server-side JavaScript, triggering a use-after-free (CWE-416) during document processing. The flaw affects availability only and requires valid low-privilege credentials; no public exploit identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

No vendor-released patch version was identified in the provided data, so the fix version cannot be cited here; monitor MongoDB ticket SERVER-128473 (https://jira.mongodb.org/browse/SERVER-128473) and the official MongoDB security advisories, then upgrade mongod to the fixed release once published. As an immediate compensating control, disable server-side JavaScript execution by starting mongod with security.javascriptEnabled: false (or --noscripting), which blocks the vulnerable $where/$function/$accumulator JavaScript paths entirely - the trade-off is that any legitimate queries or aggregation stages relying on server-side JavaScript will fail, so validate application dependencies first. Additionally, apply least privilege by auditing and revoking read access from untrusted or unnecessary accounts, and restrict network exposure of the mongod port to trusted application hosts, since exploitation requires an authenticated session.

Affected VersionsENISA

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

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's aggregation framework supports operators that execute server-side JavaScript inside the mongod process (historically $where, $function, and $accumulator, backed by an embedded JavaScript engine). The root cause is classed as CWE-416 Use After Free: during document processing, memory tied to the JavaScript execution or intermediate aggregation state is freed and subsequently referenced, corrupting the process and forcing mongod to terminate. Because the JavaScript path runs in the same process as the core database engine, memory mishandling there directly impacts database availability rather than being sandboxed. No CPE strings were provided in the input, so exact affected build ranges cannot be enumerated from this data.

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

Network-reachable with a low-privilege read account (PR:L) and no user interaction; impact is a mongod crash so availability-only (A:H) with no confidentiality or integrity effect.

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

DescriptionCVE.org

An authenticated user with read access can cause the mongod process to be terminated through certain aggregation expressions that execute server-side JavaScript. The issue involves improper memory handling during document processing.

Executive ViewAI

Why It Matters

CVE-2026-13071 affects MongoDB's mongod server, allowing any authenticated user with read-level privileges to crash the database through malicious aggregation pipeline expressions, causing service disruption. With no vendor patch currently available, organizations running MongoDB face availability risk from insider threats and compromised low-privilege accounts.

Business Impact: High
Compensating Controls

Restrict database read privileges to essential roles only; disable server-side JavaScript execution in aggregation pipelines unless required for specific applications; implement query auditing and alerting for complex aggregation operations; consider network segmentation to limit database connectivity to trusted application servers; establish incident response procedures for database unavailability incidents.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
widely deployed enterprise and cloud NoSQL database
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.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

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.

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