# CVE-2021-20334: Local privilege escalation in MongoDB Compass for Windows

- Severity: Medium 4.8 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- 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): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2021-04-06T16:45:20.154Z
- Modified: 2026-06-17T03:33:41.720Z
- Weaknesses: CWE-269
- Assigned by: mongodb

## Description

A malicious 3rd party with local access to the Windows machine where MongoDB Compass is installed can execute arbitrary software with the privileges of the user who is running MongoDB Compass. This issue affects: MongoDB Inc. MongoDB Compass 1.x version 1.3.0 on Windows and later versions; 1.x versions prior to 1.25.0 on Windows.

(As written by CVE List.)

## Affected

- MongoDB Inc. MongoDB Compass: from 1.3.0 before 1.x*
- mongodb compass: from 1.3.0 before 1.25.0

## Every score

- mongodb: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://jira.mongodb.org/browse/COMPASS-4510> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-20334](https://www.cve.org/CVERecord?id=CVE-2021-20334), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2021-20334](https://nvd.nist.gov/vuln/detail/CVE-2021-20334), Public domain, modified 2026-06-17

---

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