What’s Vulnerable › Vulnerabilities
CVE-2024-6375: Missing authorization check may lead to shard key refinement
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-01 · updated 2026-06-17
- Weakness: CWE-285
Description
A command for refining a collection shard key is missing an authorization check. This may cause the command to run directly on a shard, leading to either degradation of query performance, or to revealing chunk boundaries through timing side channels. This affects MongoDB Server v5.0 versions, prior to 5.0.22, MongoDB Server v6.0 versions, prior to 6.0.11 and MongoDB Server v7.0 versions prior to 7.0.3.
Affected products
- MongoDB: from 5.0.0 before 5.0.22; from 6.0.0 before 6.0.11; from 7.0.0 before 7.0.3 — fixed in 5.0.22, 6.0.11, 7.0.3
How to fix
Upgrade to a fixed version: MongoDB 5.0.22, 6.0.11, 7.0.3. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2024-6375 or the next vulnerability affects your stack