MongoDB SBE $locf Window Accumulator Use-After-Free Enables Heap OOB Read and Server Crash
- CVE-2026-120803
- GHSA-xqmg-xhh6-75p8
- EUVD-2026-122883
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.
Text from the CVE.org record.
Recommendation
MongoDB MongoDB Server
- If you run 9.0.xupdate to 9.0.7 or laterPatch update: breaking changes are unlikely
- If you run 8.3.xupdate to 8.3.16 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MongoDB MongoDB Server
Affected versions Fixed in from 9.0.0 to before 9.0.7 9.0.7 from 8.3.0 to before 8.3.16 8.3.16
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.