CyberSecBulletin
CVE-2024-6382NVD status: Analyzed

MongoDB Rust Driver: Improper Handling of Syntactically Invalid Structure

CVE-2024-6382 is a high-severity improper handling of syntactically invalid structure vulnerability in MongoDB Rust Driver from MongoDB, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 2.8.2 as the first without the flaw, so updating MongoDB Rust Driver to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.28% 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 Rust Driver to 2.8.2 or a later version.
  2. Update Rust Driver to 2.8.2 or a later version.
  3. Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
MongoDBMongoDB Rust Driver2.0 up to, but not including, 2.8.22.8.2
MongoDBRust Driver2.0.0 up to, but not including, 2.8.22.8.2

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
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
HighData or code can be modified at will.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.16.4MediumCNA (mongodb.com)
CVSS 3.17.5HighNVD

Official description

Incorrect handling of certain string inputs may result in MongoDB Rust driver constructing unintended server commands. This may cause unexpected application behavior including data modification. This issue affects MongoDB Rust Driver 2.0 versions prior to 2.8.2

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Handling of Syntactically Invalid Structure

The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.

More Improper Handling of Syntactically Invalid Structure vulnerabilities (CWE-228)

Timeline

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

References

Advisories

Recent Improper Handling of Syntactically Invalid Structure vulnerabilities

Spotted an error? Tell us.