MongoDB Server Use-After-Free in ServerSide JS Aggregation
CVE-2026-120818 Published on November 10, 2026

Use-After-Free in MongoDB Server JavaScript Support for Aggregation Leads to Information Disclosure
A use-after-free weakness in MongoDB Server's server-side JavaScript support for aggregation may allow a stale reference to previously freed process memory to be read and returned. An authenticated user with minimal or no assigned roles can trigger this condition over the normal network protocol by submitting a single crafted aggregation request, with no additional privileges or non-default configuration. Successful triggering this issue may result in adjacent process memory contents being returned, including data that undermines memory-layout randomization, and may in some cases affect server availability.

NVD

Vulnerability Analysis

CVE-2026-120818 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.

Exploitation:
NONE
Automatable:
NO
Technical Impact:
PARTIAL
Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE

Weakness Type

What is a Dangling pointer Vulnerability?

Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

CVE-2026-120818 has been classified to as a Dangling pointer vulnerability or weakness.


Products Associated with CVE-2026-120818

Want to know whenever a new CVE is published for MongoDB? stack.watch will email you.

Affected Versions

MongoDB Server:

Exploit Probability

EPSS
0.40%
Percentile
34.29%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.