CVE-2025-6706

published 26 Jun 2025 · updated 26 Jun 2025

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

5.0MediumCVSS 5.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Server 6.0.21, Server 7.0.17 and Server 8.0.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBServer>=6.0 <6.0.21, >=7.0 <7.0.17, >=8.0 <8.0.46.0.21, 7.0.17, 8.0.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-6706 severity on Zeptric[![CVE-2025-6706](https://zeptric.io/badge/cve/CVE-2025-6706.svg)](https://zeptric.io/cve/CVE-2025-6706)