{"answers":{"affected":"2 open source packages ship an affected version, including mongodb. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-6382 in the wild and no public exploit code.","fix":"Upgrade mongodb to 2.8.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-6382 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-6382 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mongodb (crates.io): affected from 2.0.0; fixed in 2.8.2\n- mongodb (crates.io): affected from 2.0.0; fixed in 2.8.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6382/ (Markdown: https://insights.sbomify.com/CVE-2024-6382/index.md)","id":"CVE-2024-6382","markdown":"https://insights.sbomify.com/CVE-2024-6382/index.md","name":"CVE-2024-6382","record":{"aliases":["GHSA-32jf-h775-g29h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"MongoDB Rust Driver","requires_auth":"low_privilege","summary":"Adversarial input can cause the MongoDB Rust Driver to issue unintended commands, leading to unexpected data modification.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"rust_driver","vendor":"mongodb"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-228","name":"Improper Handling of Syntactically Invalid Structure"}],"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","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands.","id":"CVE-2024-6382","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow","id":"CVE-2024-6383"},"packages":[{"ecosystem":"crates.io","fixed":["2.8.2"],"introduced":["2.0.0"],"last_affected":[],"package":"mongodb","purl":null,"source":"GHSA-32jf-h775-g29h"},{"ecosystem":"crates.io","fixed":["2.8.2"],"introduced":["2.0.0"],"last_affected":[],"package":"mongodb","purl":"pkg:cargo/mongodb","source":"GHSA-32jf-h775-g29h"}],"prev":{"headline":"MongoDB C Driver bson_strfreev may be susceptible to integer overflow","id":"CVE-2024-6381"},"products":["MongoDB Rust Driver"],"published":"2024-07-02","related":[{"cvss_score":8,"headline":"Configuration may unexpectedly disable certificate validation","id":"CVE-2025-11695","kev_date_added":null,"published":"2025-10-13"},{"cvss_score":7.1,"headline":"Cross-database write redirection via unvalidated dotted database name in bulk write namespaces","id":"CVE-2026-81526","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":6.1,"headline":"GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust Driver","id":"CVE-2026-88024","kev_date_added":null,"published":"2026-09-10"},{"cvss_score":4.2,"headline":"Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver","id":"CVE-2021-20332","kev_date_added":null,"published":"2021-08-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["MongoDB Inc"]},"summary":"Adversarial input can cause the MongoDB Rust Driver to issue unintended commands, leading to unexpected data modification.","url":"https://insights.sbomify.com/CVE-2024-6382/"}