CVE-2026-96750

Shell script injection via server-supplied database name in Open MongoDB shell

State
Published
Severity
7.3 High
Published
Sep 24, 2026
Updated
Sep 25, 2026
Reserved
Sep 23, 2026

Read the record on cve.org

Description

MongoDB Compass can interpolate a database name without escaping into the initial input of its embedded MongoDB shell when a user opens the shell from that database's view. A user with privileges to create databases on a server that a Compass user connects to may, under specific conditions, have content evaluated as shell input within the Compass process, with that process's privileges. This requires the Compass user to open the shell for the affected database.

Scores

CVSSScoreVectorSource
4.07.3 HighCVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nmongodb
3.17.1 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:Hmongodb

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
CompassMongoDB
  • 1.44.0 to before 1.49.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.