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

- Severity: High 7.5 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-08-11T18:34:37.836Z
- Modified: 2026-10-23T21:10:00.157Z
- Also known as: BIT-MONGODB-2026-18706
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB MongoDB Server: from 8.3.0 before 8.3.8
- mongodb mongodb: from 8.3.0 before 8.3.8; 9.0.0
- mongodb (Bitnami): from 8.3.0 before 8.3.8; from 9.0.0 before 9.0.2

## Every score

- mongodb: CVSS:4.0 7.5 High `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`
- mongodb: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-128551> (advisory, issue-tracking, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-18706> (web)

## Sources

- CVE List: [CVE-2026-18706](https://www.cve.org/CVERecord?id=CVE-2026-18706), CVE Terms of Use, modified 2026-08-11
- NVD: [CVE-2026-18706](https://nvd.nist.gov/vuln/detail/CVE-2026-18706), Public domain, modified 2026-10-23
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-18706](https://osv.dev/vulnerability/BIT-MONGODB-2026-18706), Apache-2.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-18706 · Whole record: https://cve.day/CVE-2026-18706.json · Rebuilt by cve.day 2026-11-25T22:59:32.497Z
