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

Using $sample can trigger invariant when connecting directly to shards

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.0.3, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      QE 2021-08-09, QE 2021-08-23
    • Case:
    • Linked BF Score:
      176

      Description

      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

        Attachments

        1. test.js
          0.5 kB

          Activity

            People

            Assignee:
            eric.cox Eric Cox
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            20 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: