GitHub Advisoryadvisory · crates.io
GHSA-32jf-h775-g29h MongoDB Rust driver may issue unintended commands
MEDIUM
Official page ↗
- Aliases
- CVE-2024-6382
- Ecosystem
- crates.io
- Packages
- mongodb
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
- Weaknesses
- CWE-228
- Reviewed
- 2025-10-02
Affected packages
• crates.io mongodb: >= 2.0.0, < 2.8.2 → fixed in 2.8.2
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
Related
Alias · CVE (1)
- CVE-2024-6382 Incorrect handling of certain string inputs may result in MongoDB Rust driver constructing unintended server commands. vulnerability
Weakness · CWE (1)
- CWE-228 Improper Handling of Syntactically Invalid Structure weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6382 advisory
- https://github.com/mongodb/mongo-rust-driver/pull/1045 web
- https://github.com/mongodb/mongo-rust-driver/commit/8eac3bc6dc37a6d7667ed6c1a895c224e3ff47e1 web
- https://github.com/mongodb/mongo-rust-driver/commit/a3fe6c84ce6287348b1268f651fdac9fbed66187 web
- https://github.com/mongodb/mongo-rust-driver package
- https://jira.mongodb.org/browse/RUST-1881 web