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
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
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. |