{"id":"CVE-2026-4148","state":"PUBLISHED","title":"ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators","description":"A use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline.","publishedAt":"2026-03-17T15:53:57.874Z","updatedAt":"2026-03-18T03:55:44.426Z","severity":{"score":8.7,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/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-119319"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/4xxx/CVE-2026-4148.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-4148","state":"PUBLISHED","datePublished":"2026-03-17T15:53:57.874Z","dateUpdated":"2026-03-18T03:55:44.426Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-03-13T17:18:13.718Z"},"containers":{"cna":{"title":"ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators","descriptions":[{"lang":"en","value":"A use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline."}],"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-119319"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","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":"HIGH","baseScore":8.7,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416 Use after free","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-03-17T15:53:57.874Z"},"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-17T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-4148"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-18T03:55:44.426Z"}}]}}}