Skip to main content

MongoDB Server CVE-2026-13065

| EUVDEUVD-2026-47796 HIGH
NULL Pointer Dereference (CWE-476)
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 MongoDB account
  2. Delivery
    Craft aggregation with $linearFill and malformed sortBy
  3. Exploit
    Submit pipeline over wire protocol
  4. Execution
    Trigger null pointer dereference in execution
  5. Persist
    Crash mongod process
  6. Impact
    Repeat to sustain denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Exploitation requires an authenticated account with at least read-only privileges on the target MongoDB deployment (per PR:L) and network reachability to the mongod service (AV:N). The concrete trigger is an aggregation pipeline that uses the $linearFill window-function operator together with a sortBy expression of a specific/unexpected type - that crafted sortBy is the exact condition that causes the crash. Limiting factors: the attacker must be able to authenticate (fully unauthenticated exploitation is not indicated), and impact is confined to availability (process crash / DoS) with no data disclosure or modification; no non-default server configuration is described as necessary, so default deployments where read accounts exist are exposed.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VA:H, VC:N/VI:N) scores 7.1 and cleanly matches the description: network-reachable, low complexity, requires low privileges (a read-only authenticated account), no user interaction, and pure availability impact with no confidentiality or integrity loss. This is a genuine availability risk for multi-tenant or broadly-accessible MongoDB deployments where many principals hold read access, since any of them can crash a node on demand and likely script repeated crashes. It is not a data-breach or RCE issue. No EPSS score, KEV entry, or POC was supplied, so real-world exploitation appears speculative rather than confirmed - the priority is driven by ease of triggering against exposed clusters, not by observed attacks. Note the only reference is a MongoDB JIRA ticket (SERVER-127280) with no fixed version or advisory text, so patch-version details are unverified.

Exploit ScenarioDerived

An attacker who has obtained or been granted a read-only MongoDB credential (for example a reporting or analytics account in a shared cluster) connects over the normal database protocol and issues an aggregation pipeline that invokes $linearFill with a crafted sortBy expression of an unexpected type. The mongod process hits a null pointer dereference and terminates, dropping the database node; the attacker can re-run the query after each restart to sustain the outage. No public POC is currently identified, but the trigger is a single well-formed query requiring no elevated rights.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% 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 Server allows an authenticated user holding only read-only privileges to crash the mongod process by submitting an aggregation pipeline that uses the $linearFill window function with a maliciously typed sortBy expression. Because the required privilege level is minimal (any read user) and the trigger is a single crafted query over the normal database wire protocol, a low-privilege account can repeatedly terminate the database node. No public exploit has been identified at time of analysis, and the issue is not listed in CISA KEV; EPSS was not provided.

RemediationAI

No vendor-released patched version was identified in the available data; the fix is tracked in MongoDB's issue tracker at https://jira.mongodb.org/browse/SERVER-127280, which should be monitored for the exact patched release train (Community and Enterprise), and the upgrade applied once published. Until a patched build is deployed, reduce exposure by tightening role-based access control so that untrusted or broadly-shared accounts do not hold even read privileges on affected clusters, since read access is the only prerequisite; where feasible, restrict network reachability of mongod to trusted application hosts only, and monitor mongod for abnormal termination and automatic-restart loops to detect exploitation. These compensating controls limit who can submit the crafted pipeline but do not remove the underlying flaw, and RBAC tightening may disrupt legitimate read consumers, so validate access needs before restricting them.

Affected VersionsENISA

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

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 vulnerability lives in MongoDB's aggregation framework, specifically the $linearFill window-function operator used inside $setWindowFields for gap-filling numeric series. $linearFill relies on a sortBy specification to order documents before interpolation. Per CWE-476 (NULL Pointer Dereference), the execution engine fails to fully validate the type of the sortBy expression before dereferencing it, so a sortBy of an unexpected type leads to a null dereference and abnormal termination of mongod. The flaw is in query execution rather than parsing/authorization, which is why a read-only role - normally considered safe - is sufficient to reach the vulnerable code path.

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 query engine (AV:N), simple crafted pipeline (AC:L), requires a read-only authenticated account (PR:L), no interaction, and only availability impact from the mongod crash (A:H, C/I:N).

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

A user with read-only privileges is able to craft an aggregation pipeline using the $linearFill window function operator with a specific sortBy expression type to cause the mongod process to terminate abnormally, resulting in denial of service. The issue stems from insufficient validation of sort specifications during execution.

Executive ViewAI

Why It Matters

MongoDB Server (CVE-2026-13065) allows authenticated database users with read-only access to crash and repeatedly disable the mongod process, creating unplanned service outages for applications relying on MongoDB. The ease of exploitation-requiring only a single crafted query and minimal database privileges-means organizations face frequent availability disruptions without preventive controls. With no vendor patch available, immediate mitigation is critical to protect operational continuity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations pending patch availability: (1) Restrict read-only database access through identity and access management to only trusted applications and verified user accounts; (2) Deploy aggregation pipeline query monitoring or filtering to detect and block queries using the $linearFill window function; (3) Configure automated failover to backup MongoDB nodes to minimize outage duration; (4) Implement monitoring and alerting for unexpected mongod process terminations.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
High
MongoDB is a widely deployed enterprise and cloud 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.5%
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

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

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