CVE-2025-6710: Pre-authentication Denial of Service Stack Overflow Vulnerability in JSON Parsing via Excessive Recursion in MongoDB

Published Jun 26, 2025
·
Updated

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.

Affected Software

6 affected components
MongoDB MongoDB Server<7.0.17
MongoDB MongoDB Server<8.0.5
MongoDB MongoDB Server<6.0.21
MongoDB MongoDB>=6.0.0<6.0.21
MongoDB MongoDB>=7.0.0<7.0.17
MongoDB MongoDB>=8.0.0<8.0.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MongoDB Server to a version that resolves this vulnerability.

    Fixed in 6.0.21
  2. Upgrade

    Upgrade MongoDB Server to a version that resolves this vulnerability.

    Fixed in 7.0.17
  3. Upgrade

    Upgrade MongoDB Server to a version that resolves this vulnerability.

    Fixed in 8.0.5

Event History

Jun 26, 2025
CVE Published
via MITRE·02:09 PM
Data Sourced
via MITRE·02:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-6710?

CVE-2025-6710 is considered a critical vulnerability due to the potential for stack overflow in MongoDB Server.

2

How do I fix CVE-2025-6710?

To mitigate CVE-2025-6710, upgrade to MongoDB Server version 7.0.17 or later, or version 8.0.5 or later.

3

What versions of MongoDB Server are affected by CVE-2025-6710?

CVE-2025-6710 affects MongoDB Server versions prior to 7.0.17, 8.0.5, and 6.0.21.

4

What causes CVE-2025-6710?

CVE-2025-6710 is caused by the JSON parsing mechanism that can lead to excessive stack space consumption from crafted JSON inputs.

5

What are the potential impacts of CVE-2025-6710?

The potential impacts of CVE-2025-6710 include server crashes and denial of service due to stack overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203