Skip to main content
← All vulnerabilities
CVE-2025-1691GHSA-43G5-2WR2-Q7VJ

MongoDB Shell may be susceptible to Control Character Injection via autocomplete

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • MongoDB Inc mongosh

    fixed in 2.3.9

  • mongoshnpm

    fixed in 2.3.9

References 1

jira.mongodb.org