CVE-2025-6706: Running certain aggregation operations with the SBE engine may lead to unexpected behavior on MongoDB Server

Published Jun 26, 2025
·
Updated

An authenticated user may trigger a use after free that may result in MongoDB Server crash and other unexpected behavior, even if the user does not have authorization to shut down a server. The crash is triggered on affected versions by issuing an aggregation framework operation using a specific combination of rarely-used aggregation pipeline expressions. This issue affects MongoDB Server v6.0 version prior to 6.0.21, MongoDB Server v7.0 version prior to 7.0.17 and MongoDB Server v8.0 version prior to 8.0.4 when the SBE engine is enabled.

Affected Software

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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MongoDB Server 6.0 to a version that resolves this vulnerability.

    Fixed in 6.0.21
  2. Upgrade

    Upgrade MongoDB Server 7.0 to a version that resolves this vulnerability.

    Fixed in 7.0.17
  3. Upgrade

    Upgrade MongoDB Server 8.0 to a version that resolves this vulnerability.

    Fixed in 8.0.4

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2025-6706?

CVE-2025-6706 is considered a high severity vulnerability due to its potential to cause crashes and unexpected behavior in MongoDB Server.

2

How do I fix CVE-2025-6706?

To fix CVE-2025-6706, upgrade to MongoDB Server version 6.0.21 or later, 7.0.17 or later, or 8.0.4 or later.

3

Who is affected by CVE-2025-6706?

Authenticated users of MongoDB Server versions earlier than 6.0.21, 7.0.17, or 8.0.4 are at risk of exploiting CVE-2025-6706.

4

What is the impact of CVE-2025-6706?

CVE-2025-6706 may lead to a use-after-free condition that can crash the MongoDB Server and lead to data instability.

5

Is it possible for unauthorized users to exploit CVE-2025-6706?

No, CVE-2025-6706 requires authenticated users to trigger the vulnerability, but it can occur even without shutdown permissions.

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