CVE-2026-4148

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

State
Published
Severity
8.7 High
Published
Mar 17, 2026
Updated
Mar 18, 2026
Reserved
Mar 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nmongodb
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hmongodb

Weaknesses

Affected Products

ProductVersions
MongoDB ServerMongoDB Inc
  • 8.2 to before 8.2.6Affected
  • 8.0 to before 8.0.20Affected
  • 7.0 to before 7.0.31Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.