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

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
mongodb BitnamiFrom 7.0.07.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.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2026-4358, GHSA-64ph-qr47-qxh4, MINI-8gxc-g5pp-86qc, MINI-p4h5-hp62-chcj, UBUNTU-CVE-2026-4358.

Is CVE-2026-4358 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free