# CVE-2024-6376: ejson shell parser in MongoDB Compass maybe bypassed

CVE-2024-6376 is fixed in 3 products on 1 platform, first by MongoDB Compass 1.42.2.0, released February 29, 2024. It is not reported as exploited. Patch Radar priority: Urgent.

- Web page: https://patchblox.com/security/cve/CVE-2024-6376
- Priority: Urgent
- CVSS: 9.8
- EPSS: 0.0048
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 1, 2024
- Weakness: CWE-20: Improper Input Validation
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-6376

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | MongoDB Compass | 1.42.2.0 | [MongoDB Compass 1.42.2.0](https://patchblox.com/security/data/fix/windows-app/mongodb.compass.full-1.42.2.0.md) | Feb 29, 2024 |
| Windows apps | MongoDB Compass Isolated Edition | 1.42.2.0 | [MongoDB Compass Isolated Edition 1.42.2.0](https://patchblox.com/security/data/fix/windows-app/mongodb.compass.isolated-1.42.2.0.md) | Feb 29, 2024 |
| Windows apps | MongoDB Compass Readonly | 1.42.2.0 | [MongoDB Compass Readonly 1.42.2.0](https://patchblox.com/security/data/fix/windows-app/mongodb.compass.readonly-1.42.2.0.md) | Feb 29, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
