Use-after-free in MongoDB Server - CVE-2026-120803

 

Use-after-free in MongoDB Server - CVE-2026-120803

Published: November 16, 2026


Vulnerability identifier: #VU166277
CSH Severity: Low
CVSS v4: 7.1 [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]
CVE-ID: CVE-2026-120803
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to crash the MongoDB server and potentially disclose adjacent heap contents.

The vulnerability exists due to use-after-free in MongoDB’s SBE $locf window accumulator when serializing a carried-forward value in certain $setWindowFields aggregation pipelines. A remote user can submit a crafted aggregation pipeline with readWrite privileges on a database to trigger dereferencing of a dangling pointer, causing a heap out-of-bounds read that may disclose adjacent heap contents and crash the mongod server.


Affected software

MongoDB Server

How to mitigate CVE-2026-120803

Install security update from vendor's website.

MongoDB Server - addressed in versions 8.3.16, 9.0.7

External References

Related Security Bulletins