What’s Vulnerable › Vulnerabilities

CVE-2026-4148: 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.

Affected products

How to fix

Upgrade to a fixed version: MongoDB 7.0.31, 8.0.20, 8.2.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-4148 or the next vulnerability affects your stack