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

- Severity: Medium 6.1 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-17T19:00:07.518Z
- Modified: 2026-09-10T16:01:43.357Z
- Also known as: BIT-MONGODB-2026-4358
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

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

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Server: from 8.2 before 8.2.6; from 8.0 before 8.0.20; from 7.0 before 7.0.31
- mongodb mongodb: from 7.0.0 before 7.0.31; from 8.0.0 before 8.0.20; from 8.2.0 before 8.2.6
- mongodb (Bitnami): from 7.0.0 before 7.0.31; from 8.0.0 before 8.0.20; from 8.2.0 before 8.2.6

## Every score

- mongodb: CVSS:4.0 6.1 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-118849> (exploit, advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4358> (web)

## Sources

- CVE List: [CVE-2026-4358](https://www.cve.org/CVERecord?id=CVE-2026-4358), CVE Terms of Use, modified 2026-03-17
- NVD: [CVE-2026-4358](https://nvd.nist.gov/vuln/detail/CVE-2026-4358), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-4358](https://osv.dev/vulnerability/BIT-MONGODB-2026-4358), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-4358 · Whole record: https://cve.day/CVE-2026-4358.json · Rebuilt by cve.day 2026-11-25T22:59:16.057Z
