MongoDB Compass
Shell script injection via server-supplied database name in Open MongoDB shell
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.3high · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
MongoDB Compass
- >= 1.44.0, < 1.49.12
Fixed in 1.49.12
Mitigation
Upgrade Compass to 1.49.12 or later.
References
- Release notes github.com/mongodb-js/compass/releases/tag/v1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.