CVE-2025-6706 Affecting mongodb package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-MONGODB-12869236
  • published26 Feb 2026
  • disclosed26 Jun 2025

Introduced: 26 Jun 2025

CVE-2025-6706  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:18.04 mongodb.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mongodb package and not the mongodb package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1