Critical severity · published Jul 1, 2024
CVE-2024-6376
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of ejson shell parser in Compass' connection handling
9.8
CVSS
0.5%
EPSS
No
On KEV
Description
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of ejson shell parser in Compass' connection handling. This issue affects MongoDB Compass versions prior to version 1.42.2
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 41% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
Compass · Mongodb
before 1.42.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6376
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6376
Issue Tracking
https://jira.mongodb.org/browse/COMPASS-7496
More from Compass
7.8
CVE-2026-14881
Compass connection import allows to override OIDC browser open command (usually set through settings), allowing for arbitrary shell commands execution when connecting to cluster using OIDC auth flow
7.8
CVE-2025-1755
MongoDB Compass may be susceptible to local privilege escalation under certain conditions potentially enabling unauthorized actions on a user's system with elevated privileges,…
7.8
CVE-2021-20334
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…
6.8
CVE-2024-3371
MongoDB Compass may accept and use insufficiently validated input from an untrusted external source
4.3
CVE-2026-9101
Prototype pollution in csv parsing
