CVE-2024-6382 Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands.
Adversarial input can cause the MongoDB Rust Driver to issue unintended commands, leading to unexpected data modification.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-6382?
CVE-2024-6382 is a medium-severity command injection vulnerability in MongoDB Rust Driver, published on 2 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
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
Weakness: CWE-228
Which versions are affected by CVE-2024-6382?
2 open source packages ship an affected version, including mongodb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb crates.io | From 2.0.0 | 2.8.2 |
mongodb crates.io | From 2.0.0 | 2.8.2 |
Products include Mongodb Rust Driver.
How do I fix CVE-2024-6382?
Upgrade mongodb to 2.8.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-6382 being exploited?
There is no known exploitation of CVE-2024-6382 in the wild and no public exploit code.
Other vulnerabilities in MongoDB Rust Driver
- CVE-2025-11695 Configuration may unexpectedly disable certificate validation
- CVE-2026-81526 Cross-database write redirection via unvalidated dotted database name in bulk write namespaces
- CVE-2026-88024 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust Driver
- CVE-2021-20332 Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver
Sources
Also known as GHSA-32jf-h775-g29h.