Headline
CVE-2021-32037: [SERVER-59071] Using $sample can trigger invariant when connecting directly to shards
An authorized user may trigger an invariant which may result in denial of service or server exit if a relevant aggregation request is sent to a shard. Usually, the requests are sent via mongos and special privileges are required in order to know the address of the shards and to log in to the shards of an auth enabled environment.
Title
User may trigger invariant when allowed to send commands directly to shards
CVE ID
CVE-2021-32037
Description
An authorized user may trigger an invariant which may result in denial of service or server exit if a relevant aggregation request is sent to a shard. Usually, the requests are sent via mongos and special privileges are required in order to know the address of the shards and to log in to the shards of an auth enabled environment.
CVSS score
This issue’s CVSS:3.1 severity is scored at 6.5 using the following scoring metrics:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
MongoDB Server v5.0.0-v5.0.2
CWE
CWE-617: Reachable Assertion
Underlying operating systems affected
ALL
How the issue was reported:
Externally
External Reference link (server ticket)
SERVER-59071