# CVE-2026-120803: MongoDB SBE $locf Window Accumulator Use-After-Free Enables Heap OOB Read and Server Crash

- Severity: High 7.1 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-11-10T20:02:53.682Z
- Modified: 2026-11-13T20:18:00.110Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- MongoDB MongoDB Server: from 9.0.0 before 9.0.7; from 8.3.0 before 8.3.16

## Every score

- mongodb: CVSS:4.0 7.1 High `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: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://jira.mongodb.org/browse/SERVER-135180>

## Sources

- CVE List: [CVE-2026-120803](https://www.cve.org/CVERecord?id=CVE-2026-120803), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-120803](https://nvd.nist.gov/vuln/detail/CVE-2026-120803), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-120803 · Whole record: https://cve.day/CVE-2026-120803.json · Rebuilt by cve.day 2026-11-25T22:59:50.203Z
