CVE-2025-1692: MongoDB Shell may be susceptible to control character injection via pasting

Published Feb 27, 2025
·
Updated

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

2 affected componentsFixes available
npm/mongosh<2.3.9
2.3.9
MongoDB mongosh<2.3.9

Event History

Feb 27, 2025
CVE Published
via MITRE·12:37 PM
Data Sourced
via MITRE·12:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
Affected Software
Advisory Published
via GitHub·03:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-1692?

CVE-2025-1692 is classified as a medium severity vulnerability.

2

How do I fix CVE-2025-1692?

To mitigate CVE-2025-1692, upgrade to version 2.3.9 or later of the MongoDB Shell.

3

What type of vulnerability is CVE-2025-1692?

CVE-2025-1692 is a control character injection vulnerability that can lead to arbitrary code execution.

4

Who is affected by CVE-2025-1692?

Users of the MongoDB Shell prior to version 2.3.9 are affected by CVE-2025-1692.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203