CVE-2026-4358
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
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| 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 ID | Description |
|---|---|
| CWE-415 | The product calls free() twice on the same memory address. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
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.
How can this vulnerability impact me? :
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.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know