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
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.
| Product | Versions |
|---|---|
| MongoDB Server MongoDB | 9.0.0 to before 9.0.7 Affected8.3.0 to before 8.3.16 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | mongodb | |
| 3.1 | 7.1 High | mongodb |
Weaknesses
- CWE-416 Use After Free
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.