CVE-2024-6376: MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the
CVE-2024-6376 is a high-severity flaw (CVSS 7.0) affecting compass. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-6376?
compass: upgrade to 1.42.2. Exact commands for each OS are on this page.
Is CVE-2024-6376 being exploited?
CVE-2024-6376 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-6376 affect?
CVE-2024-6376 affects compass. Severity is high (CVSS 7.0). 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
How urgent is CVE-2024-6376?
Priority 35/100. High severity
Software pages
Related CVEs
- CVE-2026-14881 HIGH 7.8 UPGRADE When importing connections in Compass it is possible to override some connection options that are otherwise ca
- CVE-2025-1755 HIGH 7.5 UPGRADE MITIGATE MongoDB Compass may be susceptible to local privilege escalation under certain conditions potentially enabling
- CVE-2024-3371 HIGH 7.1 UPGRADE MongoDB Compass may accept and use insufficiently validated input from an untrusted external source