// For flags

CVE-2025-6706

Running certain aggregation operations with the SBE engine may lead to unexpected behavior on MongoDB Server

Severity Score

5.0
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

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.

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.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
Attack Vector
Network
Attack Complexity
High
Authentication
Single
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2025-06-26 CVE Reserved
  • 2025-06-26 CVE Published
  • 2025-06-26 CVE Updated
  • 2025-06-27 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-416: Use After Free
CAPEC
References (1)
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
MongoDB Inc
Search vendor "MongoDB Inc"
MongoDB Server
Search vendor "MongoDB Inc" for product "MongoDB Server"
>= 6.0.0 < 6.0.21
Search vendor "MongoDB Inc" for product "MongoDB Server" and version " >= 6.0.0 < 6.0.21"
en
Affected
MongoDB Inc
Search vendor "MongoDB Inc"
MongoDB Server
Search vendor "MongoDB Inc" for product "MongoDB Server"
>= 7.0.0 < 7.0.17
Search vendor "MongoDB Inc" for product "MongoDB Server" and version " >= 7.0.0 < 7.0.17"
en
Affected
MongoDB Inc
Search vendor "MongoDB Inc"
MongoDB Server
Search vendor "MongoDB Inc" for product "MongoDB Server"
>= 8.0.0 < 8.0.4
Search vendor "MongoDB Inc" for product "MongoDB Server" and version " >= 8.0.0 < 8.0.4"
en
Affected