CVE-2018-20805

Invariant with $elemMatch

MEDIUM
6.5
CVSS Score
Published: November 23, 2020 at 03:20 PM UTC
Updated: June 17, 2026 at 01:53 AM UTC
1 product affected across 1 vendorMongoDB

Using MongoDB Server by MongoDB Inc.?

Get instant alerts when new vulnerabilities affect MongoDB Server - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 1%

Description

A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries, which perform an $elemMatch . This issue affects MongoDB Server v4.0 versions prior to 4.0.5 and MongoDB Server v3.6 versions prior to 3.6.10.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.6 ≤ v < 3.6.103.6.0 ≤ v < 3.6.104.0 ≤ v < 4.0.54.0.0 ≤ v < 4.0.53.64.0
Affected range stops below 3.6.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_CONFIRMIssue TrackingVendor Advisory
https://jira.mongodb.org/browse/SERVER-38164

CVSS

6.5MEDIUMmongodb
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-834

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card