# CVE-2024-6382: Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands.

- Severity: Medium 6.4 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-07-02T17:17:50.237Z
- Modified: 2026-06-17T08:17:54.047Z
- Also known as: GHSA-32jf-h775-g29h
- Weaknesses: CWE-228
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Rust Driver: from 2.0 before 2.8.2
- mongodb (crates.io): from 2.0.0 before 2.8.2
- mongodb rust_driver: from 2.0.0 before 2.8.2

## Every score

- mongodb: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://jira.mongodb.org/browse/RUST-1881> (issue-tracking, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2024-6382](https://www.cve.org/CVERecord?id=CVE-2024-6382), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-32jf-h775-g29h](https://github.com/advisories/GHSA-32jf-h775-g29h), CC-BY-4.0, modified 2025-10-02
- NVD: [CVE-2024-6382](https://nvd.nist.gov/vuln/detail/CVE-2024-6382), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6382 · Whole record: https://cve.day/CVE-2024-6382.json · Rebuilt by cve.day 2026-11-25T22:58:42.474Z
