Overview
CVE-2025-6710 is a serious vulnerability that affects multiple versions of MongoDB Server. This vulnerability can potentially lead to system compromises or data leaks due to an issue with the JSON parsing mechanism that makes the server susceptible to stack overflow attacks. This vulnerability is especially critical as it could lead to server crashes and can occur even before authorisation.
Vulnerability Summary
CVE ID: CVE-2025-6710
Severity: High (CVSS: 7.5)
Attack Vector: Network
Privileges Required: Low (No authentication needed for v7.0 and v8.0, authentication required for v6.0)
User Interaction: None
Impact: Potential system compromise or data leakage
Affected Products
Escape the Surveillance Era
Most apps won’t tell you the truth.
They’re part of the problem.
Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.
Ameeba Chat gives you a way out.
- • No phone number
- • No email
- • No personal info
- • Anonymous aliases
- • End-to-end encrypted
Chat without a trace.
Product | Affected Versions
MongoDB Server | v7.0 prior to 7.0.17
MongoDB Server | v8.0 prior to 8.0.5
MongoDB Server | v6.0 prior to 6.0.21
How the Exploit Works
The exploit works by sending specially crafted JSON inputs to the MongoDB Server. These inputs cause unwarranted levels of recursion in the JSON parsing mechanism, resulting in excessive stack space consumption. This can lead to a stack overflow that causes the server to crash. For v6.0 versions, an attacker would need to authenticate first to induce this denial of service.
Conceptual Example Code
This is a conceptual example of how the exploit might be conducted in a HTTP request:
POST /mongodb_endpoint HTTP/1.1
Host: target.example.com
Content-Type: application/json
{ "malicious_json": "{...deeply nested recursive elements...}" }
In this example, the “malicious_json” would contain deeply nested recursive elements that when parsed by the MongoDB Server, would lead to a stack overflow and potential server crash.

