MongoDB Shell may be susceptible to control character injection via pasting
Moderate severity
GitHub Reviewed
Published
Feb 27, 2025
to the GitHub Advisory Database
•
Updated Feb 27, 2025
Description
Published by the National Vulnerability Database
Feb 27, 2025
Published to the GitHub Advisory Database
Feb 27, 2025
Reviewed
Feb 27, 2025
Last updated
Feb 27, 2025
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.
References