Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59071

Using $sample can trigger invariant when connecting directly to shards

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • Affects Version/s: 5.0.2
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • QE 2021-08-09, QE 2021-08-23
    • 176

      CVE-2021-32037

      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

        1. test.js
          0.5 kB
          Randolph Tan

            Assignee:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            1 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: