CVE-2026-18711
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-18711 is a use-after-free vulnerability in MongoDB Server's query execution engine that can be triggered by an authenticated user with read and write privileges when running certain queries against time-series collections. The flaw was published on August 11, 2026, and affects MongoDB Server versions 8.0.0 through 8.0.28 and 8.3.0 through 8.3.7. Exploitation can result in a server crash (denial of service) or disclosure of freed memory contents within query results. It carries a CVSS v4.0 base score of 7.1 (High) (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-416 (Use After Free): MongoDB's query execution engine retains an internal reference to a memory region that has already been freed when processing specific queries against time-series collections. After the memory is freed, it may be reallocated and used by other code, while the stale reference continues to be used by the query engine — leading to undefined behavior. Exploitation requires network access and low-privilege authenticated credentials (read and write on the affected collections), but no special configuration or user interaction beyond issuing a crafted query. The relevant upstream issue is tracked at MongoDB JIRA (GitHub Advisory).

Impact

Successful exploitation can cause the MongoDB server process to crash, resulting in a denial of service for all connected clients and applications. Additionally, freed memory contents may be returned within query results, potentially exposing sensitive in-memory data such as other users' query data, credentials, or internal server state. The integrity of the system is not directly affected, and there is no evidence of lateral movement capability; however, repeated exploitation could be used to destabilize database availability or harvest memory disclosures (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of publication (GitHub Advisory). The EPSS score is approximately 0.27% (19th percentile), indicating a low near-term probability of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is not automatable and requires authenticated access, limiting the attacker pool to users with existing read/write privileges on time-series collections.

Exploitation steps

  1. Obtain credentials: Acquire valid MongoDB credentials with read and write privileges on a database containing time-series collections, either through credential theft, insider access, or a compromised application account.
  2. Connect to MongoDB: Establish a connection to the target MongoDB Server instance (default port 27017) using a MongoDB client or driver.
  3. Identify time-series collections: Enumerate available time-series collections using db.getCollectionInfos({type: 'timeseries'}) or similar commands.
  4. Craft and execute triggering query: Issue specific queries against a time-series collection that trigger the use-after-free condition in the query execution engine. The exact query pattern is not publicly documented, but the vulnerability is associated with internal reference handling during query execution (tracked in MongoDB JIRA).
  5. Observe outcome: Monitor query results for unexpected memory content disclosures, or observe the server for a crash (denial of service). Repeated execution may be needed to reliably trigger the condition.

Indicators of compromise

  • Logs: Unexpected MongoDB server crashes or restarts logged in mongod.log; stack traces referencing query execution engine or time-series collection handling.
  • Process: Abnormal termination of the mongod process; core dump files generated in the MongoDB data directory following a crash.
  • Network: Authenticated connections from unusual source IPs or service accounts issuing queries against time-series collections at abnormal frequency or timing.
  • Application: Query results containing unexpected binary or garbled data that may indicate freed memory disclosure.

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability: users should upgrade to MongoDB Server 8.0.29 or later (for the 8.0 branch) or 8.3.8 or later (for the 8.3 branch) (GitHub Advisory). As an interim workaround, restrict read and write privileges on time-series collections to only fully trusted users, and implement network-level controls (firewalls, VPNs) to limit access to MongoDB instances. Monitor for unexpected server crashes or anomalous query behavior against time-series collections until patching is complete.

Additional resources


SourceThis report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18712HIGH7.2
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18711HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18709MEDIUM5.9
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18708MEDIUM5.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026
CVE-2026-18707MEDIUM5.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesAug 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management