CVE-2026-120803
JSON

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 packageVersionsReported by
MongoDB MongoDB Serverfrom 9.0.0 before 9.0.7, from 8.3.0 before 8.3.16CVE List

All scores

mongodb7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
mongodb7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-120803 changed 2026-11-13CVE Terms of Use
NVDCVE-2026-120803 changed 2026-11-13Public domain