What’s Vulnerable › Vulnerabilities
CVE-2026-5170: Users could trigger a crash of mongod primaries during promotion to sharded
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-30 · updated 2026-06-17
- Weakness: CWE-617
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.
Affected products
- MongoDB: from 7.0.0 before 7.0.31; from 8.0.0 before 8.0.18; from 8.2.0 before 8.2.2 — fixed in 7.0.31, 8.0.18, 8.2.2
How to fix
Upgrade to a fixed version: MongoDB 7.0.31, 8.0.18, 8.2.2. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-5170 or the next vulnerability affects your stack