Home / MongoDB Inc. / MongoDB Compass / CVE-2021-20334
CVE-2021-20334: is it exploited, and which versions of MongoDB Inc. MongoDB Compass are affected and fixed?
CVE-2021-20334 is a privilege escalation (improper privilege management) vulnerability in MongoDB Inc. MongoDB Compass. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: MongoDB Compass from 1.3.0 through every 1.x version (CVE record by mongodb). Fixed in 1.25.0 (CVE record by mongodb). Severity: Medium (4.8, CVSS 3.1, from mongodb).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 28, 2026, 20:20 UTC and NVD November 19, 2026, 07:59 UTC.
What is CVE-2021-20334?
Local privilege escalation in MongoDB Compass for Windows
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.
From the CVE record by mongodb, last updated September 17, 2024, 01:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| MongoDB Inc. | MongoDB Compass Windows | from 1.3.0 through every 1.x version | 1.25.0 |
As the CVE record by mongodb states it, last updated September 17, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mongodb | compass | from 1.3.0 before 1.25.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:33 UTC.
How severe is CVE-2021-20334?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L | mongodb |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 4.6 | CVSS 2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-20334 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.36% probability of exploitation activity in the next 30 days, percentile 31.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-269 Improper Privilege Management
Where are the vendor advisories and references?
- https://jira.mongodb.org/browse/COMPASS-4510 x_refsource_MISC
Who found and reported it?
- Hou JingYi (@hjy79425575) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 17, 2020
- Published
- April 6, 2021, 16:45 UTC
- CVE record updated
- September 17, 2024, 01:25 UTC by mongodb
- NVD
- Modified, last modified June 17, 2026, 03:33 UTC
- Last checked
- CVE list November 28, 2026, 20:20 UTC; NVD November 19, 2026, 07:59 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect MongoDB Compass?
- Jul 22, 2026CVE-2026-14881 MongoDB Compass: OS command injection
- Feb 27, 2025CVE-2025-1755 MongoDB Inc MongoDB Compass: untrusted Search Path
- Jul 1, 2024CVE-2024-6376 MongoDB Inc MongoDB Compass: improper input validation
- Apr 24, 2024CVE-2024-3371 MongoDB Inc MongoDB Compass: trust of System Event Data
Questions about CVE-2021-20334
Is CVE-2021-20334 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.36% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of MongoDB Inc. MongoDB Compass are affected by CVE-2021-20334?
MongoDB Compass from 1.3.0 through every 1.x version, per the CVE record by mongodb. The tables above give every range the sources list.
Which version fixes CVE-2021-20334?
1.25.0, per the CVE record by mongodb. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-20334?
Medium (4.8, CVSS 3.1, from mongodb). The severity table above shows each score with its source.
Where is the official record of CVE-2021-20334?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.