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-05-27
AI Q&A
2026-03-17
EPSS Evaluated
2026-05-25
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 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


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart