Skip to main content

Mongodb Server EUVDEUVD-2026-12639

| CVE-2026-4358 MEDIUM
Double Free (CWE-415)
2026-03-17 mongodb
6.1
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Impact

The CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H vector indicates network-accessible attack surface but requires relatively high attack complexity and low privileges (authenticated write access). While this suggests moderate real-world risk, several factors warrant attention: the vulnerability is automatable (no user interaction required once authenticated), the technical impact includes both confidentiality and integrity violations with high availability impact (DoS), and memory corruption vulnerabilities are inherently difficult to predict in scope. The requirement for write privileges significantly reduces threat surface compared to unauthenticated issues, and the high attack complexity requirement suggests exploitation requires precise query crafting. However, denial of service impact is achievable and could affect production systems. Without confirmed public POC or KEV/EPSS data in the provided intelligence, the vulnerability should be prioritized based on deployment exposure: MongoDB instances accepting authenticated write operations from untrusted sources face elevated risk. This is not a critical remote code execution vector but warrants timely patching for availability-sensitive deployments.

Exploit ScenarioDerived

An authenticated database user with write privileges (such as an application service account) constructs a malicious aggregation query using the $lookup operator combined with conditions that force the SBE engine's in-memory hash table to spill to disk. For example, a query joining a large collection with insufficient memory allocation triggers the spill mechanism, exposing the use-after-free vulnerability. The attacker executes this query repeatedly, causing memory corruption, application crashes, or potential information disclosure from freed memory regions. While attack complexity is moderate (requiring knowledge of database schema and precise query construction), the operation is fully automatable once the vulnerable query pattern is discovered, making denial of service attacks reliable and repeatable against MongoDB instances.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 17, 2026

Memory corruption in MongoDB Server's slot-based execution engine can be triggered by authenticated users with write privileges through malicious $lookup aggregation queries that cause hash table spillover to disk. Successful exploitation enables denial of service and potential information disclosure, though a patch is not currently available. The attack requires network access and specific query construction, limiting the practical exploit window.

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

A use-after-free vulnerability in MongoDB's slot-based execution (SBE) engine can be triggered by authenticated users with write privileges through specially crafted aggregation queries using $lookup operators when in-memory hash tables spill to disk, potentially leading to memory corruption and denial of service. The vulnerability affects MongoDB Server versions 7.0 prior to 7.0.31, 8.0 prior to 8.0.20, and 8.2 prior to 8.2.6. While the CVSS score of 6.4 indicates moderate severity, the vulnerability requires authentication and elevated complexity, reducing immediate exploitation risk.

RemediationAI

Upgrade MongoDB Server to patched versions: MongoDB Server 7.0.31 or later, MongoDB Server 8.0.20 or later, or MongoDB Server 8.2.6 or later. Consult the vendor security advisory at https://nvd.nist.gov/vuln/detail/CVE-2026-4358 for detailed patch availability and testing guidance. Until upgrades can be performed, implement the following mitigations: restrict write access to MongoDB instances to trusted authentication sources only, disable or restrict aggregation pipeline functionality if operationally feasible, implement network segmentation to limit access to MongoDB instances from application servers only, and monitor database query logs for unusual aggregation patterns involving $lookup operators with large datasets. For Debian-based systems, check for available security updates from your distribution maintainer. Test patches in non-production environments before deployment to validate compatibility with application workloads.

Affected VersionsENISA

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

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

MongoDB's slot-based execution (SBE) engine is the query execution framework used for aggregation pipelines in modern MongoDB versions. The vulnerability exists in the memory management of in-memory hash tables used during $lookup aggregation operations when these tables exceed memory thresholds and are spilled to disk. The root cause is classified under CWE-415 (Double Free or Use-After-Free), a memory safety issue where memory is accessed after being freed or deallocated. This occurs specifically during the transition from in-memory to disk-based hash table operations in the SBE engine, affecting MongoDB Server product (cpe:2.3:a:mongodb_inc:mongodb_server). The flaw manifests when the hash table spilling mechanism fails to properly manage object lifecycle references, leaving dangling pointers that can be dereferenced in subsequent operations.

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 6.1 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
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 - 19:00 nvd
MEDIUM 6.1

DescriptionCVE.org

A specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk.

Executive ViewAI

Why It Matters

CVE-2026-4358 presents moderate security risk rated CVSS 6.4. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

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

Attack Technique

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

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-4148 HIGH
8.7 Mar 17

MongoDB Server sharded clusters are vulnerable to use-after-free memory corruption when authenticated users with read pe

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

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