CVE-2025-6706

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.

SeverityMedium
CVSS5.0
Exploit probability—
ProductMongodb
PublishedJun 26, 2025
First seenJun 26, 2025

How to fix

Update
  • mongodb mongodb6.0.21, 7.0.17, 8.0.4 or later

Affected products

ProductAffected versionsFixed in
mongodb mongodb6.0.0 ≤ v < 6.0.21, 7.0.0 ≤ v < 7.0.17, 8.0.0 ≤ v < 8.0.46.0.21, 7.0.17, 8.0.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-6706 · Mongodb · Dark Radar