Cyber Resilience

CVE-2025-1755

LPE in Mongodb Compass ≤ 1.42.1

Published
27 February 2025
Modified
09 April 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0014 4th percentile
Risk Priority 51 floored blend · peak EPSS

Summary

CVE-2025-1755 is a high-severity Untrusted Search Path (CWE-426) vulnerability in Mongodb Compass. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Path Interception (T1034); ranked at the 4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to CM-6 (Configuration Settings) and CM-7 (Least Functionality) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-1755 is a local privilege escalation vulnerability in MongoDB Compass, stemming from CWE-426 (Untrusted Search Path). It affects MongoDB Compass versions prior to 1.42.1 and can be triggered under certain conditions when a crafted file is stored in the C:\node_modules\ directory. The vulnerability has a CVSS v3.1 base score of 7.5 (AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H), indicating high impact potential with local access required.

A local attacker with low privileges can exploit this vulnerability through a high-complexity attack that requires user interaction. Successful exploitation enables unauthorized actions on the user's system with elevated privileges, potentially granting full control over confidentiality, integrity, and availability.

Mitigation is available via upgrade to MongoDB Compass 1.42.1 or later, as indicated by the MongoDB advisory at https://jira.mongodb.org/browse/COMPASS-9058. Red Hat has also released errata RHSA-2025:1755 addressing the issue, available at https://access.redhat.com/errata/RHSA-2025:1755.html.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1034 Path Interception Persistence
**This technique has been deprecated.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
T1574.001 DLL Stealth
Adversaries may abuse dynamic-link library files (DLLs) in order to achieve persistence, escalate privileges, and evade defenses.
T1574.008 Path Interception by Search Order Hijacking Stealth
Adversaries may execute their own malicious payloads by hijacking the search order used to load other programs.
T1574.007 Path Interception by PATH Environment Variable Stealth
Adversaries may execute their own malicious payloads by hijacking environment variables used to load libraries.
T1574.009 Path Interception by Unquoted Path Stealth
Adversaries may execute their own malicious payloads by hijacking vulnerable file path references.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-1756Same product: Redhat Enterprise Linux For Arm 64
CVE-2024-47422Same product: Microsoft Windows
CVE-2026-48275Same product: Microsoft Windows
CVE-2024-22410Same product: Microsoft Windows
CVE-2026-27290Same product: Microsoft Windows
CVE-2025-24789Same product: Microsoft Windows
CVE-2023-34144Same product: Microsoft Windows
CVE-2024-36071Same product: Microsoft Windows
CVE-2026-21333Same product: Microsoft Windows
CVE-2023-34145Same product: Microsoft Windows

Affected Assets

mongodb
compass
≤ 1.42.1
redhat
enterprise linux for arm 64
9.0_aarch64
redhat
enterprise linux for ibm z systems
9.0_s390x
redhat
enterprise linux server for power little endian update services for sap solutions
9.0_ppc64le
redhat
enterprise linux update services for sap solutions
9.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Secure baseline settings can enforce absolute, organization-controlled paths for critical resources.

Least-functionality configuration can prohibit unapproved directories or executables from being reachable via search paths.

Engineering principles such as trusted paths, complete mediation, and least privilege directly require hard-coded or validated search paths instead of external ones.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-05 full match
prevents

Preventing execution of unauthorized code directly blocks the malicious binaries that an untrusted search path would load.

PR.PS-06 mostly match
prevents

Secure development practices include avoiding or sanitizing externally influenced search paths in application code.

PR.PS-01 partial match
prevents

Hardened configuration baselines can enforce safe search paths and restrict environment variables that enable the weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can discover search-path issues but does not itself prevent them in production code.

degrades

Restricting software installation reduces the chance that untrusted binaries or libraries are placed in search paths.

prevents

Secure architecture principles include hard-coded or validated search paths and avoiding reliance on untrusted directories.

prevents

Secure coding standards require absolute paths or integrity-checked search paths, directly mitigating CWE-426.

none

Change-management processes can enforce review of path-handling changes, indirectly lowering risk.

References