Skip to main content

Mongodb Server EUVDEUVD-2026-12587

| CVE-2026-4148 HIGH
Use After Free (CWE-416)
2026-03-17 mongodb
8.7
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as user with read role
  2. Exploit
    Construct malicious $lookup aggregation pipeline
  3. Execution
    Trigger use-after-free in sharded cluster
  4. Impact
    Crash database or leak sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
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

MongoDB sharded cluster deployment with authenticated user possessing read role; exploitation requires issuing specially crafted $lookup or $graphLookup aggregation pipeline operators.

Impact

Despite the high CVSS score of 8.8, the real-world risk is moderated by several factors. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) shows this is network-accessible with low complexity but requires authentication with low privileges. The vulnerability is not listed in CISA's KEV catalog, indicating no known active exploitation in the wild. Without available EPSS data or public proof-of-concept code, the immediate exploitation risk appears lower than the CVSS score suggests. The requirement for authentication and specific sharded cluster configurations further reduces the attack surface compared to unauthenticated vulnerabilities.

Exploit ScenarioDerived

An attacker with valid read-only credentials to a MongoDB sharded cluster could craft malicious aggregation queries using $lookup or $graphLookup operations designed to trigger the use-after-free condition. Given the low attack complexity (AC:L) and network accessibility (AV:N), successful exploitation could allow the attacker to execute arbitrary code with database process privileges or cause denial of service through memory corruption. No public proof-of-concept currently exists, but the straightforward attack vector through standard MongoDB query interfaces makes exploitation feasible for skilled attackers with database access.

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

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

Alert me

AnalysisAIv1 – Mar 17, 2026

MongoDB Server sharded clusters are vulnerable to use-after-free memory corruption when authenticated users with read permissions execute malicious $lookup or $graphLookup aggregation pipeline operations. An attacker can exploit this vulnerability to achieve high-impact outcomes including information disclosure, data manipulation, and denial of service. No patch is currently available for this vulnerability.

Earlier versions of this analysis (1)
v1 Mar 17, 2026 - 20:30 CVSS 8.7

A use-after-free memory corruption vulnerability exists in MongoDB Server's sharded clusters that allows authenticated users with minimal read privileges to potentially execute arbitrary code or crash the database. The vulnerability is triggered through specially crafted $lookup or $graphLookup aggregation pipeline operations and affects MongoDB Server versions 8.2 (before 8.2.6), 8.0 (before 8.0.20), and 7.0 (before 7.0.31). With a CVSS score of 8.8 and no current KEV listing or known public exploits, this represents a serious but not yet actively exploited vulnerability requiring authenticated access.

RemediationAI

Upgrade MongoDB Server to the patched versions: 8.2.6 or later for the 8.2 branch, 8.0.20 or later for the 8.0 branch, or 7.0.31 or later for the 7.0 branch. MongoDB's security advisory and patch details are available at https://jira.mongodb.org/browse/SERVER-119319. As a temporary mitigation until patching is possible, consider restricting database user permissions to limit access to $lookup and $graphLookup operations in sharded clusters, implementing network segmentation to limit database access to trusted sources only, and monitoring aggregation pipeline usage for suspicious patterns.

Affected VersionsENISA

MongoDB Server 8.2 <8.2.6
MongoDB Server 8.0 <8.0.20
MongoDB Server 7.0 <7.0.31

Affected Packages

euvd mongodb_server fix: 7.0.31, 8.0.20, 8.2.6

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 affects MongoDB Server (CPE: cpe:2.3:a:mongodb_inc:mongodb_server:*:*:*:*:*:*:*:*), specifically in sharded cluster deployments where data is distributed across multiple servers. The CWE-416 classification indicates a use-after-free condition, which occurs when a program continues to use a pointer after its memory has been freed, potentially allowing attackers to corrupt memory or execute arbitrary code. The issue manifests in MongoDB's aggregation framework, specifically in the $lookup and $graphLookup pipeline stages that perform joins between collections in sharded environments.

Know when Mongodb Server 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

NVD PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
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 released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 17, 2026 - 15:53 nvd
HIGH 8.7

DescriptionCVE.org

A use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline.

Executive ViewAI

Why It Matters

A critical use-after-free vulnerability in MongoDB Server (CVE-2026-4148) allows authenticated database users to crash the database or execute arbitrary code through crafted aggregation queries. Organizations running MongoDB 7.0, 8.0, or 8.2 face potential data loss, service disruption, and unauthorized access if exploited by insiders or compromised accounts with minimal database privileges.

Business Impact: High
Compensating Controls

Immediately restrict $lookup and $graphLookup aggregation pipeline operations via MongoDB's role-based access control (RBAC) to only trusted service accounts; implement network segmentation to limit database connections to essential application servers; apply principle of least privilege to reduce database user permissions; enable MongoDB audit logging to detect suspicious aggregation operations; implement connection pooling and rate limiting on database access; maintain offline backups to enable rapid recovery if database corruption occurs.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
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.0%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Related Vulnerabilities in MongoDB C Driver HTTP DoS and Use-After-Free

View all 2
CVE-2026-82067 CRITICAL
9.2 Sep 08

Authorization bypass in MongoDB Server (7.0.x before 7.0.41, 8.0.x before 8.0.30, 8.3.x before 8.3.9) allows unauthentic

CVE-2026-18691 CRITICAL
9.0 Aug 11

Credential exposure in MongoDB Server's replica-set/sharded-cluster internal authentication allows an adjacent-network a

CVE-2026-18697 HIGH
8.7 Aug 11

Unauthenticated denial of service in MongoDB Server's aggregation framework allows remote attackers to crash the mongos

CVE-2026-82075 HIGH
8.7 Sep 08

Unauthenticated CPU exhaustion in the MongoDB sharded-cluster router process (mongos) allows any client with network acc

CVE-2026-82064 HIGH
8.7 Sep 08

Denial of service in MongoDB Server allows an unauthenticated remote attacker to terminate the mongod process by trigger

CVE-2026-8053 HIGH
8.7 May 12

Out-of-bounds memory write in MongoDB Server's time-series collection feature enables arbitrary code execution by authen

CVE-2026-9740 HIGH
8.7 Jun 09

Remote unauthenticated denial-of-service in MongoDB Server's BSON validation layer allows attackers to crash the mongod

CVE-2026-9742 HIGH
8.2 Jun 09

Pre-authentication denial-of-service in MongoDB Server allows unauthenticated remote clients to crash the database proce

CVE-2026-18692 HIGH
7.7 Aug 11

Use-after-free in MongoDB Server's timeseries bucket lifecycle handling allows an authenticated user with write-level pr

CVE-2026-89099 HIGH
7.7 Sep 11

Race condition in MongoDB Server's document value layer permits an authenticated user with ordinary read-write database

CVE-2026-8336 HIGH
7.7 May 13

Authenticated users can crash MongoDB Server by chaining specific server-side JavaScript operations ($_internalJsEmit or

CVE-2026-82053 HIGH
7.6 Sep 08

Incorrect authorization in MongoDB Server's LDAP integration allows an authenticated user to acquire elevated privileges

Vendor StatusVendor

Debian

mongodb
Release Status Fixed Version Urgency
(unstable) fixed (unfixed) -

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