MongoDB Server: Improper Neutralization of Null Byte or NUL Character
CVE-2024-10921 is a high-severity improper neutralization of null byte or NUL character vulnerability in MongoDB Server from MongoDB, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists versions 5.0.30, 6.0.19, 7.0.15 as the first without the flaw, so updating MongoDB Server to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.55% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update MongoDB Server to 5.0.30 or 6.0.19 or 7.0.15 or 8.0.3, whichever matches your release line, or a later version.
- Update Mongodb to 5.0.30 or 6.0.19 or 7.0.15 or 8.0.3, whichever matches your release line, or a later version.
- Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| MongoDB | MongoDB Server | 5.0 up to, but not including, 5.0.30; 6.0 up to, but not including, 6.0.19; 7.0 up to, but not including, 7.0.15; 8.0 up to, but not including, 8.0.3 | 5.0.30, 6.0.19, 7.0.15, 8.0.3 |
| MongoDB | Mongodb | 5.0.0 up to, but not including, 5.0.30; 6.0.0 up to, but not including, 6.0.19; 7.0.0 up to, but not including, 7.0.15; 8.0.0 up to, but not including, 8.0.3 | 5.0.30, 6.0.19, 7.0.15, 8.0.3 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 6.8 | Medium | CNA (mongodb.com) |
| CVSS 3.1 | 8.1 | High | NVD |
Official description
An authorized user may trigger crashes or receive the contents of buffer over-reads of Server memory by issuing specially crafted requests that construct malformed BSON in the MongoDB Server. This issue affects MongoDB Server v5.0 versions prior to 5.0.30 , MongoDB Server v6.0 versions prior to 6.0.19, MongoDB Server v7.0 versions prior to 7.0.15 and MongoDB Server v8.0 versions prior to and including 8.0.2.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Neutralization of Null Byte or NUL Character
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component.
How developers prevent this class of flaw
- Developers should anticipate that null characters or null bytes will be injected/removed/manipulated in the input vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only valid, expected and appropriate input is processed by the system.
- Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
More Improper Neutralization of Null Byte or NUL Character vulnerabilities (CWE-158)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- jira.mongodb.org/browse/SERVER-96419Issue Tracking
Other vulnerabilities in MongoDB Server
- 7.5 High severity
- 8.8 High severity
- 7.1 High severity
- 10.0 Critical severity
- 8.4 High severity
- 7.2 High severity
Recent Improper Neutralization of Null Byte or NUL Character vulnerabilities
- 9.8 Critical severity
- 9.3 High severity
Microsoft DirectX NULL Byte Overwrite Exploited
Spotted an error? Tell us.