CVE-2026-18706 PUBLISHED

Use-After-Free in MongoDB $graphLookup Aggregation Stage Leads to Denial of Service and Potential Remote Code Execution

Assigner: mongodb
Reserved: 03.08.2026 Published: 11.08.2026 Updated: 11.08.2026

An issue in MongoDB Server's $graphLookup aggregation stage could allow an authenticated user able to issue aggregation and memory-management commands to cause an internal reference to be used after the underlying memory has been freed. This could result in a server crash or, potentially, execution of unintended code.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.5

Product Status

Vendor MongoDB
Product MongoDB Server
Versions Default: unaffected
  • affected from 8.3.0 to 8.3.8 (excl.)

References

Problem Types

  • CWE-416: Use After Free CWE