CVE-2025-6709
MongoDB vulnerability analysis and mitigation

Overview

The MongoDB Server contains a critical denial of service vulnerability (CVE-2025-6709) discovered in June 2025. The vulnerability stems from improper handling of specific date values in JSON input when using OIDC authentication. This affects MongoDB Server versions 7.0 (prior to 7.0.17), 8.0 (prior to 8.0.5), and 6.0 (prior to 6.0.21) (NVD, MongoDB Jira).

Technical details

The vulnerability is classified as an Improper Input Validation (CWE-20) issue with a CVSS v3.1 score of 7.5 (High). The flaw allows attackers to send specially crafted JSON payloads containing malicious date values through the mongo shell, which triggers an invariant failure leading to server crashes. For MongoDB Server v6.0, exploitation requires authentication, while versions 7.0 and 8.0 are vulnerable to pre-authentication attacks (Wiz, MongoDB Jira).

Impact

When successfully exploited, the vulnerability results in complete server crashes and denial of service conditions. For v7.0 and v8.0 deployments, attackers can trigger these crashes without authentication, while v6.0 environments require prior authentication to exploit the vulnerability. This can lead to critical disruption of database operations (GBHackers).

Mitigation and workarounds

MongoDB has released patched versions to address this vulnerability. Users should upgrade to MongoDB v6.0.21 or later, v7.0.17 or later, or v8.0.5 or later depending on their current version. For environments where immediate patching isn't feasible, administrators should consider disabling OIDC authentication until updates can be applied (Wiz).

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