NetSight
high7.1

CVE-2026-120803

A use-after-free issue exists in MongoDB’s SBE (Slot-Based Execution) implementation of a window function accumulator used by certain $setWindowFields aggregat…

Impact

A use-after-free issue exists in MongoDB’s SBE (Slot-Based Execution) implementation of a window function accumulator used by certain $setWindowFields aggregation pipelines. Under specific conditions, the accumulator can retain a dangling pointer to memory that has since been freed. When this stale pointer is later dereferenced during serialization of the carried-forward value, it can result in a heap out-of-bounds read that may expose adjacent heap contents and crash the mongod server. An authenticated user with readWrite privileges on a database can trigger this issue by crafting a specific aggregation pipeline.

An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: low risk of data being read, high risk of outages.

Affected products

VendorProductAffected versions
MongoDBMongoDB Server
from 9.0.0 before 9.0.7
from 8.3.0 before 8.3.16
MongoDB, Inc.MongoDB Server
from 8.3.0 before 8.3.16
from 9.0.0 before 9.0.7

Weakness classification

References