CVE-2026-5170

Medium

Description

A user with access to the cluster with a limited set of privilege actions can trigger a crash of a mongod process during the limited and unpredictable window when the cluster is being promoted from a replica set to a sharded cluster. This may cause a denial of service by taking down the primary of the replica set. This issue affects MongoDB Server v8.2 versions prior to 8.2.2, MongoDB Server v8.0 versions between 8.0.18, MongoDB Server v7.0 versions between 7.0.31.

SeverityMedium
CVSS5.3
Exploit probability—
ProductMongodb
PublishedMar 30, 2026
First seenMar 30, 2026
Weakness typeCWE-617CWE-617

How to fix

Update
  • mongodb mongodb7.0.31, 8.0.18, 8.2.2 or later

Affected products

ProductAffected versionsFixed in
mongodb mongodb7.0.0 ≤ v < 7.0.31, 8.0.0 ≤ v < 8.0.18, 8.2.0 ≤ v < 8.2.27.0.31, 8.0.18, 8.2.2

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.