Skip to content

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

HighCVSS 7.1 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
MongoDB Server >= 8.3.0, < 8.3.16; >= 9.0.0, < 9.0.7 8.3.16, 9.0.7 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Server >= 9.0.0, < 9.0.7 9.0.7
MongoDB Server >= 8.3.0, < 8.3.16 8.3.16

References