Description
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.
Published: 2026-08-11
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A use‑after‑free flaw in the $graphLookup aggregation stage of MongoDB Server allows an authenticated user who can issue aggregation and memory‑management commands to trigger use of freed memory. Depending on the circumstances the attacker may cause the database process to crash, resulting in a denial of service, or may execute unintended code that could lead to remote code execution. The weakness is identified as CWE‑416.

Affected Systems

The affected product is MongoDB Server. All instances running versions prior to the fix that addressed the issue in issue SERVER‑128551 are vulnerable, regardless of deployment environment. The vulnerability is only exploitable when the attacker has legitimate credentials with permissions to perform aggregation queries and manage memory.

Risk and Exploitability

The CVSS score of 7.5 classifies the vulnerability as high severity. The EPSS score is less than 1%, indicating a very low probability of exploitation in the wild at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to have authenticated access and sufficient privilege; once that condition is met, the flaw can be used to trigger a crash or potentially gain remote code execution, which would compromise the availability, confidentiality, and integrity of the affected database system.

Generated by OpenCVE AI on August 12, 2026 at 19:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch released by MongoDB that resolves SERVER-128551.
  • Revoke unnecessary aggregation and memory‑management privileges from user accounts that do not require them.
  • Enable monitoring and logging for authentication failures and unexpected server restarts to detect exploitation attempts.
  • If the $graphLookup stage is not required for business operations, consider disabling or restricting its use until the patch is deployed.

Generated by OpenCVE AI on August 12, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server

Tue, 11 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Use-After-Free in MongoDB $graphLookup Aggregation Stage Leads to Denial of Service and Potential Remote Code Execution
Weaknesses CWE-416
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Mongodb Mongodb Server
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-08-11T20:27:45.069Z

Reserved: 2026-08-03T15:53:46.316Z

Link: CVE-2026-18706

cve-icon Vulnrichment

Updated: 2026-08-11T20:27:41.225Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-11T19:17:25.360

Modified: 2026-08-28T21:16:15.740

Link: CVE-2026-18706

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T20:00:04Z

Weaknesses