CVE-2025-1692: MongoDB Shell may be susceptible to control character injection via pasting
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
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-1692?
CVE-2025-1692 is classified as a medium severity vulnerability.
How do I fix CVE-2025-1692?
To mitigate CVE-2025-1692, upgrade to version 2.3.9 or later of the MongoDB Shell.
What type of vulnerability is CVE-2025-1692?
CVE-2025-1692 is a control character injection vulnerability that can lead to arbitrary code execution.
Who is affected by CVE-2025-1692?
Users of the MongoDB Shell prior to version 2.3.9 are affected by CVE-2025-1692.
What attack vector is associated with CVE-2025-1692?
CVE-2025-1692 can be exploited through an attack vector that utilizes a compromised clipboard to paste malicious code into the MongoDB Shell.