CVE-2026-120803
7.1high
MongoDB SBE $locf Window Accumulator Use-After-Free Enables Heap OOB Read and Server Crash
- Severity
- 7.1high CVSS:4.0 by mongodb
- Exploit likelihood
- 0.46% (higher than 41% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mongodb
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB MongoDB Server | from 9.0.0 before 9.0.7, from 8.3.0 before 8.3.16 | CVE List |
All scores
| mongodb | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N |
| mongodb | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-120803 changed 2026-11-13 | CVE Terms of Use |
| NVD | CVE-2026-120803 changed 2026-11-13 | Public domain |