CVE-2026-4358 Memory safety issues in slot-based execution hash table spill
An authenticated user with write privileges can trigger a use-after-free or double-free in MongoDB's SBE engine via a crafted aggregation query, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-4358?
CVE-2026-4358 is a medium-severity use after free vulnerability in Mongodb Mongodb, published on 17 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-415
Which versions are affected by CVE-2026-4358?
1 open source package ship an affected version, including mongodb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb Bitnami | From 7.0.0 | 7.0.31, 8.0.20, 8.2.6 |
Products include Mongodb Mongodb.
How do I fix CVE-2026-4358?
Upgrade mongodb to a fixed version for your release line: 7.0.31, 8.0.20 or 8.2.6.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-4358 being exploited?
There is no known exploitation of CVE-2026-4358 in the wild and no public exploit code.
Other vulnerabilities in Mongodb Mongodb
- CVE-2025-14847 MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency
- CVE-2026-82067 Auth bypass in MongoDB Server
- CVE-2026-13072 MongoDB Improper Input Validation in Compute Mode External Data Processing Leading to Memory Corruption
- CVE-2017-15535 Denial of service in n/a
- CVE-2026-18691 Improper Authentication in MongoDB Intra-Cluster Connections Allows Credential Exposure
Sources
Also known as BIT-mongodb-2026-4358, GHSA-64ph-qr47-qxh4, MINI-8gxc-g5pp-86qc, MINI-p4h5-hp62-chcj, UBUNTU-CVE-2026-4358.