{"id":"CVE-2026-4358","state":"PUBLISHED","title":"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.","publishedAt":"2026-03-17T19:00:07.518Z","updatedAt":"2026-03-17T20:08:24.920Z","severity":{"score":6.1,"label":"Medium","version":"4.0","vector":"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","source":"mongodb"},"assigner":"mongodb","products":["MongoDB Inc MongoDB Server"],"affected":[{"vendor":"MongoDB Inc","product":"MongoDB Server","defaultStatus":"unaffected","versions":[{"version":"8.2","status":"affected","lessThan":"8.2.6","versionType":"custom"},{"version":"8.0","status":"affected","lessThan":"8.0.20","versionType":"custom"},{"version":"7.0","status":"affected","lessThan":"7.0.31","versionType":"custom"}]}],"references":["https://jira.mongodb.org/browse/SERVER-118849"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/4xxx/CVE-2026-4358.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-4358","state":"PUBLISHED","datePublished":"2026-03-17T19:00:07.518Z","dateUpdated":"2026-03-17T20:08:24.920Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-03-17T18:55:18.644Z"},"containers":{"cna":{"title":"Memory safety issues in slot-based execution hash table spill","descriptions":[{"lang":"en","value":"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":[{"vendor":"MongoDB Inc","product":"MongoDB Server","defaultStatus":"unaffected","versions":[{"version":"8.2","status":"affected","lessThan":"8.2.6","versionType":"custom"},{"version":"8.0","status":"affected","lessThan":"8.0.20","versionType":"custom"},{"version":"7.0","status":"affected","lessThan":"7.0.31","versionType":"custom"}]}],"references":[{"url":"https://jira.mongodb.org/browse/SERVER-118849"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":6.1,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"HIGH","baseSeverity":"MEDIUM","baseScore":6.4,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","lang":"en","description":"CWE-415 Double free","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-03-17T19:00:07.518Z"},"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-17T20:03:27.629685Z","id":"CVE-2026-4358","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-17T20:08:24.920Z"}}]}}}