Skip to content
OpenAdvisories
Medium · 5.0 CVE-2025-6706 EUVD-2025-19177GHSA-9pjr-27w4-fm42

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

Published Jun 26, 2025 · Updated Jun 26, 2025 · Assigned by mongodb

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.

Affected products

VendorProductAffectedFixed
MongoDB MongoDB Server 6.0 – < 6.0.21, 7.0 – < 7.0.17, 8.0 – < 8.0.4 6.0.21

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS mongodb No fix yet —
Ubuntu Pro 18.04 LTS mongodb No fix yet —
Ubuntu Pro 16.04 LTS mongodb No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS mongodb No fix yet —

Advisories 1

References