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

Published Jul 1, 2024
·
Updated

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

Affected Software

2 affected componentsFixes available
MongoDB Compass<1.42.2
npm/@mongodb-js/connection-form<1.20.1
1.20.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@mongodb-js/connection-form to a version that resolves this vulnerability.

    Fixed in 1.20.1
  2. Upgrade

    Upgrade MongoDB Compass to a version that resolves this vulnerability.

    Fixed in 1.42.2

Event History

Jul 1, 2024
CVE Published
via MITRE·02:57 PM
Data Sourced
via MITRE·02:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:32 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-6376?

CVE-2024-6376 is classified as a code injection vulnerability with a critical severity level due to the risk of executing malicious code.

2

How do I fix CVE-2024-6376?

To fix CVE-2024-6376, upgrade MongoDB Compass to version 1.42.2 or later.

3

What versions of MongoDB Compass are affected by CVE-2024-6376?

CVE-2024-6376 affects all versions of MongoDB Compass prior to version 1.42.2.

4

What causes CVE-2024-6376?

CVE-2024-6376 is caused by insufficient sandbox protection settings in MongoDB Compass combined with the use of the ejson shell parser.

5

Is CVE-2024-6376 a local or remote vulnerability?

CVE-2024-6376 is a local vulnerability, as it requires access to the MongoDB Compass application to exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203