VYPR
Unrated severityNVD Advisory· Published Nov 23, 2020· Updated Sep 17, 2024

Post-auth queries on compound index may crash mongod

CVE-2018-20802

Description

Unauthenticated users can issue crafted queries on compound indexes to crash the MongoDB QueryPlanner, causing denial of service.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Unauthenticated users can issue crafted queries on compound indexes to crash the MongoDB QueryPlanner, causing denial of service.

Vulnerability

A user authorized to perform database queries can trigger a denial of service by issuing specially crafted queries involving compound indexes. This affects the QueryPlanner component. The vulnerability exists in MongoDB Server v3.6 versions prior to 3.6.9 and v4.0 versions prior to 4.0.3 [1]. The root cause is an unexpected status code or return value (CWE-394) in the query planning logic when handling compound index queries.

Exploitation

An attacker needs network access to the MongoDB server and valid credentials to issue database queries (authenticated access). By sending a specially crafted query that targets compound indexes, the attacker can trigger a crash in the QueryPlanner. The attack does not require any special privileges beyond query permissions, and no user interaction is needed. The issue was externally reported and confirmed to be exploitable against MongoDB Atlas free tier instances [1].

Impact

Successful exploitation results in a denial of service (availability impact). The mongod process crashes, causing temporary downtime for the database server. There is no impact on confidentiality or integrity. The CVSS 3.1 base score is 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) [1].

Mitigation

The vulnerability is fixed in MongoDB Server versions 3.6.9 and 4.0.3. Users should upgrade to these versions or later. As of the publication date (2020-11-23), no workaround has been provided for unpatched versions. The issue is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • MongoDB/Serverllm-fuzzy
    Range: v3.6 < 3.6.9, v4.0 < 4.0.3
  • MongoDB Inc./MongoDB Serverv5
    Range: 3.6

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

1

News mentions

0

No linked articles in our index yet.