Use-After-Free Vulnerability in MongoDB Server's Aggregation JavaScript Support
CVE-2026-120818
7.1HIGH
What is CVE-2026-120818?
A use-after-free vulnerability in MongoDB Server's server-side JavaScript functionality for aggregation can be exploited, allowing an authenticated user to read and return a stale reference to previously freed memory. These attackers can trigger the exploit by sending a specially crafted aggregation request over the network without requiring elevated permissions. This flaw might inadvertently expose adjacent process memory contents, undermining memory-layout randomization protocols, and in some scenarios, it could impact the overall availability of the server.
Affected Version(s)
MongoDB Server 8.3.0 < 8.3.16
MongoDB Server 8.0.0 < 8.0.37
MongoDB Server 7.0.0 < 7.0.48