CVE-2025-1691
published 2025-02-27CVE-2025-1691: The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the…
PriorityP334medium6.5CVSS 3.1
AVNACLPRNUIRSUCNIHAN
EPSS
0.29%
20.7th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| mongodb | mongosh | < 2.3.9 | 2.3.9 |
| mongodb_inc | mongosh | < 2.3.9 | 2.3.9 |
| mongodb_inc | mongosh | >= 0 < 2.3.9 | 2.3.9 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
ghsa·2025-02-27
CVE-2025-1691 [HIGH] CWE-74 MongoDB Shell may be susceptible to Control Character Injection via autocomplete
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
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.
OSV
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
osv·2025-02-27
CVE-2025-1691 [HIGH] MongoDB Shell may be susceptible to Control Character Injection via autocomplete
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-02-27
Published