Vulnerability · Published Feb 27, 2025 · Assigned by mongodb

CVE-2025-1693MongoDB Shell may be susceptible to control character Injection via shell output

Low 3.9

In plain English

A low-severity security flaw in mongosh from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.9Low
Exploit odds (30 days)0.2%top 86.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions. The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker. This issue affects mongosh versions prior to 2.3.9

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmongosh2.3.9GHSA-r95j-4jvf-mrrw

Affected products (as reported)

VendorProductVersions
MongoDB Inc mongosh 0 – before 2.3.9

Weakness: CWE-150 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

References