CVE-2025-6706

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

State
Published
Severity
5.0 Medium
Published
Jun 26, 2025
Updated
Jun 26, 2025
Reserved
Jun 26, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:Lmongodb

Weaknesses

Affected Products

ProductVersions
MongoDB ServerMongoDB Inc
  • 6.0 to before 6.0.21Affected
  • 7.0 to before 7.0.17Affected
  • 8.0 to before 8.0.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.