CVE-2025-6710: MongoDB Server · Uncontrolled Recursion
Affects MongoDB ServerSource CVE Database V5
Not known to be exploited · CVSS 7.5 High · fixed in 8.0.5 : patch MongoDB Server soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.0.5, 7.0.17, 6.0.21
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade MongoDB Server to 8.0.5, 7.0.17 or 6.0.21.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB Inc MongoDB Server | Affected
| Fixed in
|
AI-suggested
European organizations should immediately assess their MongoDB Server deployments to identify affected versions (6.0 prior to 6.0.21, 7.0 prior to 7.0.17, and 8.0 prior to 8.0.5). If you cannot patch yet, organizations should implement network-level protections such as firewall rules to restrict access to MongoDB ports (default 27017) to trusted hosts only, minimizing exposure to untrusted networks. Deploying Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) with signatures or anomaly detection for unusual JSON payloads may help detect or block exploit attempts. For version 6.0 deployments, enforcing strong authentication and access controls reduces risk. Monitoring MongoDB server logs for crashes or unusual JSON parsing errors can provide early warning of exploitation attempts. Additionally, organizations should review and harden their MongoDB configurations, disabling unnecessary network exposure and enabling authentication and encryption where possible. Regular backups and tested recovery procedures are essential to mitigate impact from potential denial of service incidents. Finally, staying informed through MongoDB security advisories and threat intelligence feeds will help maintain timely defenses.
Description
MongoDB Server may be susceptible to stack overflow due to JSON parsing mechanism, where specifically crafted JSON inputs may induce unwarranted levels of recursion, resulting in excessive stack space consumption. Such inputs can lead to a stack overflow that causes the server to crash which could occur pre-authorisation. This issue affects MongoDB Server v7.0 versions prior to 7.0.17 and MongoDB Server v8.0 versions prior to 8.0.5. The same issue affects MongoDB Server v6.0 versions prior to 6.0.21, but an attacker can only induce denial of service after authenticating.