Medium severity · published Feb 27, 2025
CVE-2025-1691
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
6.5
CVSS
0.4%
EPSS
No
On KEV
Description
The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9.
The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
mongosh · MongoDB Inc
before 2.3.9 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-1691
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-1691
Issue Tracking
https://jira.mongodb.org/browse/MONGOSH-2024
More from mongosh
8.8
CVE-2025-1692
MongoDB Shell may be susceptible to control character injection via pasting
7.8
CVE-2025-1756
MongoDB Shell may be susceptible to local privilege escalation in Windows
6.8
CVE-2025-1693
MongoDB Shell may be susceptible to control character Injection via shell output
