CVE-2025-1691

The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9.  The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.
References
Link Resource
https://jira.mongodb.org/browse/MONGOSH-2024 Issue Tracking Vendor Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*

History

22 Sep 2025, 16:42

Type Values Removed Values Added
References () https://jira.mongodb.org/browse/MONGOSH-2024 - () https://jira.mongodb.org/browse/MONGOSH-2024 - Issue Tracking, Vendor Advisory
CPE cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*
Summary
  • (es) El shell de MongoDB puede ser susceptible a la inyección de caracteres de control, donde un atacante con control de la función de autocompletado de mongosh puede usar la función de autocompletado para ingresar y ejecutar texto malicioso ofuscado. Esto requiere la interacción del usuario, en la que el usuario usa la tecla "tabulador" para autocompletar el texto que es un prefijo de la función de autocompletado preparada por el atacante. Este problema afecta a las versiones de mongosh anteriores a la 2.3.9. La vulnerabilidad solo se puede explotar cuando mongosh está conectado a un clúster que está controlado parcial o totalmente por un atacante.
First Time Mongodb
Mongodb mongosh

27 Feb 2025, 16:15

Type Values Removed Values Added
Summary (en) The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9.  The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker. (en) The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9.  The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.

27 Feb 2025, 13:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-27 13:15

Updated : 2025-09-22 16:42


NVD link : CVE-2025-1691

Mitre link : CVE-2025-1691

CVE.ORG link : CVE-2025-1691


JSON object : View

Products Affected

mongodb

  • mongosh
CWE
CWE-74

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')