CVE-2024-3374
Medium · 5.3CVSS
5.3
EPSS
0.5%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw allows anyone on the network to crash the database server by sending certain requests, causing temporary loss of access to the data service.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unauthenticated remote attacker triggers a fatal assertion crash by causing the server to attempt construction of an oversized BSON object during ftdc diagnostic metric generation.
Why it matters to the business
Service availability is disrupted as the server terminates unexpectedly, leading to downtime for dependent applications and potential data inaccessibility until restart.
How an attack unfolds
An attacker sends crafted requests over the network that invoke diagnostic metric collection, forcing the server to build a BSON structure exceeding internal memory limits and triggering an assertion failure.
How to fix it
Upgrade MongoDB Server 5.0 installations to versions after 5.0.16 and 6.0 installations to versions after 6.0.5. Apply vendor patches promptly and validate the update through version checks.
How to confirm the fix worked
Confirm server version is newer than the affected releases, review release notes for the fix, and test that diagnostic metric generation no longer produces assertion failures under load.
Typical attack path
- Identify exposed MongoDB server instance listening on the network
- Send unauthenticated requests that trigger ftdc metric generation
- Cause oversized BSON object construction leading to fatal assertion
- Observe server crash and loss of availability
How to detect it
Search server logs for fatal assertion messages related to BSON size limits during ftdc metric generation and correlate with unexpected process terminations.
What your security team should do
- Prioritize upgrade of all exposed MongoDB instances to fixed versions
- Restrict network access to database ports to trusted sources only
- Monitor for unexpected server restarts and assertion logs
- Review and limit diagnostic metric collection frequency if feasible
The record
An unauthenticated user can trigger a fatal assertion in the server while generating ftdc diagnostic metrics due to attempting to build a BSON object that exceeds certain memory sizes. This issue affects MongoDB Server v5.0 versions prior to and including 5.0.16 and MongoDB Server v6.0 versions prior to and including 6.0.5.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | mongodb | 5.0.0 | 5.0.26 |
| Ubuntu:14.04:LTS | mongodb | 0 | No fix |
| Ubuntu:16.04:LTS | mongodb | 0 | No fix |
| Ubuntu:18.04:LTS | mongodb | 0 | No fix |
| Ubuntu:20.04:LTS | mongodb | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | mongodb | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | mongodb | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mongodb | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mongodb | 0 | No fix |
Related vulnerabilities
- CVE-2025-14345 A post-authentication flaw in the network two-phase commit protocol used for cross-shard… Also affects mongodb
- CVE-2025-13643 A user with access to the cluster with a limited set of privilege actions may be able to… Also affects mongodb
- CVE-2025-13644 MongoDB Server may experience an invariant failure during batched delete operations when… Also affects mongodb
- CVE-2025-13507 Inconsistent object size validation in time series processing logic may result in later… Also affects mongodb
- CVE-2025-12893 Clients may successfully perform a TLS handshake with a MongoDB server despite presenting… Also affects mongodb
- CVE-2025-12657 The KMIP response parser built into mongo binaries is overly tolerant of certain… Also affects mongodb
- CVE-2024-8305 prepareUnique index may cause secondaries to crash due to incorrect enforcement of index… Also affects mongodb
- CVE-2024-7553 Incorrect validation of files loaded from a local untrusted directory may allow local… Also affects mongodb