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.
High severity with no evidence of exploitation so far.
What to do
- Update MongoDB Rust Driver to 2.8.2 or a later version.
- Update Rust Driver to 2.8.2 or a later version.
- Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| MongoDB | MongoDB Rust Driver | 2.0 up to, but not including, 2.8.2 | 2.8.2 |
| MongoDB | Rust Driver | 2.0.0 up to, but not including, 2.8.2 | 2.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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 6.4 | Medium | CNA (mongodb.com) |
| CVSS 3.1 | 7.5 | High | NVD |
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
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- jira.mongodb.org/browse/RUST-1881Issue Tracking
Recent Improper Handling of Syntactically Invalid Structure vulnerabilities
- 7.5 High severity
Spotted an error? Tell us.