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.
Published: 2026-11-10
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Heap Out-of-Bounds Read and Server Crash
Action: Immediate patch
AI Analysis

Impact

A use-after-free vulnerability exists in MongoDB’s SBE implementation of a window function accumulator used by certain $setWindowFields aggregation pipelines. When a specific aggregation pipeline is executed by an authenticated user with readWrite privileges, the accumulator can retain a dangling pointer to memory that has been freed. Dereferencing this stale pointer during serialization can trigger a heap out-of-bounds read that may expose adjacent heap contents and crash the mongod server.

Affected Systems

The affected product is MongoDB Server, including all releases that support SBE and the $setWindowFields operator. No exact version list is publicly documented in the advisory, but any version containing the SBE window accumulator component is potentially vulnerable. Organizations running MongoDB Server should verify whether their deployment uses $setWindowFields in $setWindowFields pipelines and assess the presence of this code path.

Risk and Exploitability

With a CVSS score of 7.1, the vulnerability presents moderate severity, and a very low EPSS score (<1%) indicates it is unlikely to be widely exploited. Because an attacker must be authenticated with readWrite access, the risk is limited to systems where users have elevated privileges. The vulnerability is not listed in the CISA KEV catalog, further suggesting a low but present threat profile. Nonetheless, it is recommended to mitigate the issue promptly.

Generated by OpenCVE AI on November 11, 2026 at 21:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest MongoDB Server patch that addresses the SBE use-after-free bug.
  • Restrict or remove readWrite privileges for users who do not require $setWindowFields functionality.
  • Disable or tightly control the use of the $setWindowFields operator in aggregation pipelines for non-essential workloads.
  • Enable and review MongoDB audit logs to detect abnormal aggregation pipeline execution patterns.

Generated by OpenCVE AI on November 11, 2026 at 21:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 10 Nov 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title MongoDB SBE $locf Window Accumulator Use-After-Free Enables Heap OOB Read and Server Crash
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-11-10T20:02:53.682Z

Reserved: 2026-11-02T22:54:09.274Z

Link: CVE-2026-120803

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-10T20:18:50.420

Modified: 2026-11-10T22:08:59.707

Link: CVE-2026-120803

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-11T21:45:16Z

Weaknesses