CVE-2026-4358
Received Received - Intake
Use-After-Free in MongoDB SBE Engine via $lookup Aggregation

Publication date: 2026-03-17

Last updated on: 2026-04-02

Assigner: MongoDB, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-17
Last Modified
2026-04-02
Generated
2026-06-16
AI Q&A
2026-03-17
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
mongodb mongodb From 7.0.0 (inc) to 7.0.31 (exc)
mongodb mongodb From 8.0.0 (inc) to 8.0.20 (exc)
mongodb mongodb From 8.2.0 (inc) to 8.2.6 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-415 The product calls free() twice on the same memory address.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability occurs when an authenticated user with write privileges executes a specially crafted aggregation query using the $lookup operation. It can trigger a double-free or use-after-free memory issue in the slot-based execution (SBE) engine, specifically when an in-memory hash table is spilled to disk.

Impact Analysis

The vulnerability can lead to memory corruption issues such as double-free or use-after-free, which may cause application crashes or potentially allow an attacker to execute arbitrary code or disrupt service availability.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

I don't know

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-4358. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart