CVE-2024-8305 | MongoDB Server secondaries may crash due to forced index constraints

prepareUnique index may cause secondaries to crash due to incorrect enforcement of index constraints on secondaries, where in extreme cases may cause multiple secondaries crashing leading to no primaries. This issue affects MongoDB Server v6.0 versions prior to 6.0.17, MongoDB Server v7.0 versions prior to 7.0.13 and MongoDB Server v7.3 versions prior to 7.3.4

Published: 2024-10-21 Last update: 2024-11-07 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-8305 is rated Moderate Risk (44.2/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.29%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2024-8305

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-12-28 0.24% 0.29% +0.05%
2 2025-12-27 0.29% 0.24% -0.05%
3 2025-11-30 0.29%

Full EPSS history (21 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-8305

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 3.6 [email protected]
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 3.6 [email protected]

Weakness enumeration for CVE-2024-8305

OS Trackers for CVE-2024-8305

vendor priority summary link
ubuntu medium CVE-2024-8305 medium priority: Ubuntu including 1 source packages (mongodb), 10 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 5, not-affected 4, released 1. https://ubuntu.com/security/CVE-2024-8305

Affected software / configurations for CVE-2024-8305

Vendor Product Version Raw CPE
mongodb mongodb >= 6.0.0, < 6.0.17 cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*
mongodb mongodb >= 7.0.0, < 7.0.13 cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*
mongodb mongodb >= 7.3.0, < 7.3.4 cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*

References for CVE-2024-8305

cvelogic Threat Intelligence