6.3Medium
CVE-2025-1692MongoDB Shell may be susceptible to control character injection via pasting
Description
The MongoDB Shell may be susceptible to control character injection where an attacker with control of the user’s clipboard could manipulate them to paste text into mongosh that evaluates arbitrary code. Control characters in the pasted text can be used to obfuscate malicious code. This issue affects mongosh versions prior to 2.3.9
Weakness (CWE):
CWE-150
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| MongoDB Inc | mongosh | < 2.3.9 |
References and patches
- https://jira.mongodb.org/browse/MONGOSH-2025 Issue TrackingVendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*< 2.3.9