CVE-2024-3372
High · 7.5CVSS
7.5
EPSS
0.5%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in MongoDB lets attackers send bad data that can make the database stop responding to important status checks, potentially disrupting operations until fixed.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper validation of metadata input causes the server to produce incorrectly serialized BSON, resulting in unexpected application behavior and unavailability of serverStatus responses.
Why it matters to the business
Database servers can become partially unavailable, disrupting monitoring and operational queries without requiring authentication.
How an attack unfolds
An unauthenticated remote attacker sends crafted metadata that triggers faulty BSON serialization, leading to degraded server responses including loss of serverStatus functionality.
How to fix it
Upgrade MongoDB Server to 7.0.6 or later, 6.0.14 or later, or 5.0.25 or later. Apply the commit 17c0d8bbee46f15f1574079e266a9997cebe6d0e for source builds.
How to confirm the fix worked
Verify running version is at or above the fixed releases, confirm serverStatus responses are returned normally, and test with malformed metadata inputs in a non-production environment.
Typical attack path
- Identify exposed MongoDB instances listening on the network
- Craft and send malicious metadata input pre-authentication
- Trigger incorrect BSON serialization on the server
- Observe denial of serverStatus and other unexpected behaviors
How to detect it
Review MongoDB logs for malformed metadata processing errors, unexpected serverStatus unavailability, or BSON serialization failures originating from unauthenticated connections.
What your security team should do
- Immediately upgrade all affected MongoDB deployments to the fixed versions
- Restrict network access to MongoDB instances until patches are applied
- Monitor for unusual serverStatus failures or BSON-related errors in logs
The record
Improper validation of certain metadata input may result in the server not correctly serialising BSON. This can be performed pre-authentication and may cause unexpected application behavior including unavailability of serverStatus responses. This issue affects MongoDB Server v7.0 versions prior to 7.0.6, MongoDB Server v6.0 versions prior to 6.0.14 and MongoDB Server v.5.0 versions prior to 5.0.25.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | mongodb | 5.0.0 | 5.0.25 |
| 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