Use-After-Free Vulnerability in MongoDB for Sharded Clusters
CVE-2026-4148
8.7HIGH
What is CVE-2026-4148?
A use-after-free vulnerability found in MongoDB’s handling of sharded clusters allows an authenticated user with read permissions to exploit the system. By issuing a specially crafted $lookup or $graphLookup aggregation pipeline, an attacker can initiate this vulnerability, potentially leading to unpredictable behavior and unauthorized data access. Immediate attention is recommended to safeguard against potential exploitation.
Affected Version(s)
MongoDB Server 8.2 < 8.2.6
MongoDB Server 8.0 < 8.0.20
MongoDB Server 7.0 < 7.0.31