What’s Vulnerable › Vulnerabilities

CVE-2026-4358: Memory safety issues in slot-based execution hash table spill

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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB 7.0.31, 8.0.20, 8.2.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-4358 or the next vulnerability affects your stack