CVE-2025-1692
published medium CVSS 3.1 · 6.3MongoDB Shell may be susceptible to control character injection via pasting
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc | — | mongosh0 to < 2.3.9 · Other versions: unaffected | Affected | Not stated | mongodb |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc | mongosh | 0 to < 2.3.9 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
References
1Provider assertions
2mongodb · cna
MongoDB Shell may be susceptible to control character injection via pasting
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8b2ad2af67d084d8725ff5ef7c02aa9739704a8c5e55cd2e70782b88685a6041
- Ingested
- 23 Sep 2026, 08:38:52 UTC
- Source record
- Official CVE record