CVE-2024-6382: MongoDB Rust driver may issue unintended commands
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
Published Jul 2, 2024 · Updated Oct 2, 2025
Affected packages
mongodb
- Ecosystem
- Rust (crates.io)
- Affected
- >= 2.0.0, < 2.8.2
- Fixed in
- 2.8.2
- Check
cargo tree -i mongodb
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6382
- https://jira.mongodb.org/browse/RUST-1881
- https://github.com/mongodb/mongo-rust-driver/pull/1045
- https://github.com/mongodb/mongo-rust-driver/commit/8eac3bc6dc37a6d7667ed6c1a895c224e3ff47e1
- https://github.com/mongodb/mongo-rust-driver/commit/a3fe6c84ce6287348b1268f651fdac9fbed66187
- https://github.com/advisories/GHSA-32jf-h775-g29h
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
