CVE-2025-6707
MongoDB vulnerability analysis and mitigation

Overview

A privilege escalation vulnerability (CVE-2025-6707) has been identified in MongoDB Server affecting multiple versions. The vulnerability was disclosed on June 26, 2025, and affects MongoDB Server versions 5.0 prior to 5.0.31, 6.0 prior to 6.0.24, 7.0 prior to 7.0.21, and 8.0 prior to 8.0.5 (MongoDB JIRA, NVD).

Technical details

The vulnerability is classified as a race condition in privilege cache invalidation cycle, identified as CWE-863 (Incorrect Authorization). The issue has been assigned a CVSS v3.1 base score of 4.2 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N. This scoring indicates that the vulnerability requires network access, has high attack complexity, requires low privileges, needs no user interaction, and has a limited impact on confidentiality and integrity with no impact on availability (NVD, Wiz).

Impact

When exploited, this vulnerability allows authenticated users to execute requests with outdated privilege levels that were supposed to have been revoked or modified by an administrator. This could potentially lead to unauthorized access to resources or operations that should have been restricted after a privilege change (MongoDB JIRA, Wiz).

Mitigation and workarounds

MongoDB has released patches to address this vulnerability in multiple versions. Users are advised to upgrade to MongoDB Server version 5.0.31, 6.0.24, 7.0.21, or 8.0.5 depending on their current version track (MongoDB JIRA).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management