CVE-2026-4148

published 17 Mar 2026 · updated 18 Mar 2026

ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Server 7.0.31, Server 8.0.20 and Server 8.2.6.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBServer>=7.0 <7.0.31, >=8.0 <8.0.20, >=8.2 <8.2.67.0.31, 8.0.20, 8.2.6

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-4148 severity on Zeptric[![CVE-2026-4148](https://zeptric.io/badge/cve/CVE-2026-4148.svg)](https://zeptric.io/cve/CVE-2026-4148)