{"id":"CVE-2024-6376","aliases":["EUVD-2024-47483","GHSA-jxr4-4prv-mh83"],"status":"published","title":"ejson shell parser in MongoDB Compass maybe bypassed","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","severity":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0048,"percentile":0.41779,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-94"],"published":"2024-07-01T14:57:31Z","modified":"2026-06-17T08:17:53Z","fixes":[{"ecosystem":"npm","package":"@mongodb-js/connection-form","fixed_in":["1.20.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@mongodb-js/connection-form","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.1"}]}]},{"source":"osv","ecosystem":"npm","package":"@mongodb-js/connection-form","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.20.1"}]}]}],"products":[{"vendor":"mongodb","product":"compass"},{"vendor":"mongodb inc","product":"mongodb compass"}],"references":[{"url":"https://jira.mongodb.org/browse/COMPASS-7496","tags":["x_transferred","Issue Tracking","Patch","Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6376","tags":["advisory"]},{"url":"https://github.com/mongodb-js/compass/commit/b1f8050d49d66be3bc499cb317a1e1de45390e51","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jxr4-4prv-mh83"},{"url":"https://github.com/mongodb-js/compass","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-6376","title":"ejson shell parser in MongoDB Compass maybe bypassed","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","status":"published","published":"2024-07-01T14:57:31.704Z","modified":"2024-08-01T21:33:05.431Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:34:11.638716Z"}],"euvd":[{"id":"EUVD-2024-47483","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","status":"published","published":"2024-07-01T14:57:31Z","modified":"2024-08-01T21:33:05Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:50:32.736279Z"}],"ghsa":[{"id":"GHSA-jxr4-4prv-mh83","title":"ejson shell parser in MongoDB Compass maybe bypassed","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.","status":"published","published":"2024-07-01T15:32:47Z","modified":"2025-02-27T20:59:12Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20","CWE-94"],"updated_at":"2026-11-02T14:38:33.163519Z"}],"nvd":[{"id":"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","status":"published","published":"2024-07-01T15:15:17.673Z","modified":"2026-06-17T08:17:53.293Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-20","CWE-94"],"updated_at":"2026-11-02T14:10:09.388795Z"}],"osv":[{"id":"GHSA-jxr4-4prv-mh83","title":"ejson shell parser in MongoDB Compass maybe bypassed","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.","status":"published","published":"2024-07-01T15:32:47Z","modified":"2025-02-27T21:12:20.202391Z","cvss":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20","CWE-94"],"updated_at":"2026-11-02T15:46:51.10002Z"}]}}
