MongoDB SBE $locf Window Accumulator Use-After-Free Enables Heap OOB Read and Server Crash

State
Published
Severity
7.1 High
Published
Nov 10, 2026
Updated
Nov 13, 2026
Reserved
Nov 2, 2026

Read the record on cve.org

Description

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.

ProductVersions
MongoDB Server MongoDB9.0.0 to before 9.0.7 Affected8.3.0 to before 8.3.16 Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.