# CVE-2021-32037: User may trigger invariant when allowed to send commands directly to shards

- Severity: Medium 6.5 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-11-24T10:40:10.557Z
- Modified: 2026-09-08T08:46:34.672Z
- Also known as: BIT-MONGODB-2021-32037
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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. This issue affects MongoDB Server v5.0 versions prior to and including 5.0.2.

(As written by CVE List.)

## Affected

- MongoDB Inc. MongoDB Server: from 5.0 up to 5.0.2
- mongodb mongodb: from 5.0 up to 5.0.2; from 5.0.0 up to 5.0.2
- mongodb (Bitnami): from 5.0.0 before 5.0.3

## Every score

- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://jira.mongodb.org/browse/SERVER-59071> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32037> (web)

## Sources

- CVE List: [CVE-2021-32037](https://www.cve.org/CVERecord?id=CVE-2021-32037), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2021-32037](https://nvd.nist.gov/vuln/detail/CVE-2021-32037), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGODB-2021-32037](https://osv.dev/vulnerability/BIT-MONGODB-2021-32037), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-32037 · Whole record: https://cve.day/CVE-2021-32037.json · Rebuilt by cve.day 2026-11-25T22:58:05.751Z
