
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-6706 is a use-after-free vulnerability in the MongoDB Server aggregation framework that allows an authenticated attacker to crash the server and cause other unexpected behavior, even without shutdown authorization. It affects MongoDB Server v6.0 prior to 6.0.21, v7.0 prior to 7.0.17, and v8.0 prior to 8.0.4 when the Slot-Based Engine (SBE) is enabled. The vulnerability was published on June 26, 2025. It carries a CVSS v3.1 base score of 8.8 (High) (MongoDB Jira).
The root cause is a use-after-free condition (CWE-416) in MongoDB's aggregation framework when the SBE (Slot-Based Engine) is enabled. The vulnerability is triggered by issuing an aggregation pipeline operation using a specific, rarely-used combination of aggregation pipeline expressions, causing the server to access memory that has already been freed. The attack vector is network-based, requires only low-privilege authentication, and no user interaction, making it accessible to any authenticated database user regardless of their administrative role (MongoDB Jira).
Successful exploitation can result in a MongoDB Server crash (denial of service) and other undefined, unexpected behavior due to the memory corruption nature of use-after-free bugs. The Feedly intelligence assessment rates the impact as high across confidentiality, integrity, and availability, meaning exploitation could potentially lead to data exposure or corruption in addition to service disruption. Any authenticated user — even those without shutdown privileges — can trigger this condition, broadening the attack surface to all database users (MongoDB Jira).
As of the time of publication, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation. The EPSS score is approximately 0.037%, indicating a low current probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (MongoDB Jira).
mongod.log; repeated aggregation pipeline errors or fatal assertions referencing SBE engine components.mongod process without administrative shutdown commands; automatic restart events logged by the process supervisor (e.g., systemd, init).MongoDB has released patched versions addressing this vulnerability: upgrade to MongoDB Server 6.0.21 or later, 7.0.17 or later, or 8.0.4 or later. As an interim workaround if immediate patching is not possible, disabling the SBE engine will prevent exploitation (note: this may impact query performance). Additionally, restricting database access to only trusted, necessary users reduces the attack surface. Monitor server logs for unexpected crashes or unusual aggregation queries as a detection measure (MongoDB Jira).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."