CyberSecBulletin
CVE-2024-10921NVD status: Analyzed

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. 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.
  2. 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.
  3. Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.

Affected products and versions

VendorProductAffected versionsFixed in
MongoDBMongoDB Server5.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.35.0.30, 6.0.19, 7.0.15, 8.0.3
MongoDBMongodb5.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.35.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 systemScoreSeverityScored by
CVSS 3.16.8MediumCNA (mongodb.com)
CVSS 3.18.1HighNVD

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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Advisories

Other vulnerabilities in MongoDB Server

All MongoDB Server vulnerabilities

Recent Improper Neutralization of Null Byte or NUL Character vulnerabilities

Spotted an error? Tell us.