Vulnerability · Published Feb 27, 2025 · Assigned by mongodb

CVE-2025-1756MongoDB Shell may be susceptible to local privilege escalation in Windows

High 7.5

In plain English

A high-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 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

mongosh may be susceptible to local privilege escalation under certain conditions potentially enabling unauthorized actions on a user's system with elevated privilege, when a crafted file is stored in C:\node_modules\. This issue affects mongosh prior to 2.3.0

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmongosh2.3.0GHSA-f5w3-73h4-jpcm

Affected products (as reported)

VendorProductVersions
MongoDB Inc mongosh 0 – before 2.3.0

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

References