CVE-2025-6706
Running certain aggregation operations with the SBE engine may lead to unexpected behavior on MongoDB Server
Record summary
CVE-2025-6706 has a selected CVSS score of 5.0 (medium).
Description
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.
Exploitation context
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jun 26, 2025 · Source: CVE List
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
MongoDB ServerBrowse MongoDB Inc / MongoDB ServerDefault status: unaffected | CVE List | 6.0 to < 6.0.21 | affected |
| 7.0 to < 7.0.17 | affected | ||
| 8.0 to < 8.0.4 | affected |