{"schemaVersion":3,"id":"CVE-2024-6382","aliases":["GHSA-32jf-h775-g29h"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2024-07-02T17:17:50.237Z","modified":"2024-08-01T21:41:03.220Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","exploitability":7.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00277,"percentile":0.18923,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00277},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00277,"percentile":0.18923}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00277,"percentile":0.18923}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-228","name":"Improper Handling of Syntactically Invalid Structure","description":"The product does not handle or incorrectly handles input that is not syntactically well-formed with respect to the associated specification.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/228.html"}],"affected":[{"vendor":"Crates.Io","product":"mongodb","name":"mongodb","label":"mongodb","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/mongodb","purlType":"cargo","versions":[{"text":"≥ 2.0.0, < 2.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.8.2","eol":null,"hubHref":null},{"vendor":"mongodb inc","product":"mongodb rust driver","name":"MongoDB Rust Driver","label":"mongodb rust driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0, < 2.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0, < 2.8.2","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb_rust_driver"},{"vendor":"mongodb","product":"rust_driver","name":"rust driver","label":"rust_driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.8.2","eol":null,"hubHref":"/vendor/mongodb/rust_driver"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://jira.mongodb.org/browse/RUST-1881","label":"jira.mongodb.org/browse/RUST-1881","hostname":"jira.mongodb.org","tags":["WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6382","label":"nvd.nist.gov/vuln/detail/CVE-2024-6382","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mongodb/mongo-rust-driver/pull/1045","label":"github.com/mongodb/mongo-rust-driver/pull/1045","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/mongo-rust-driver/commit/8eac3bc6dc37a6d7667ed6c1a895c224e3ff47e1","label":"github.com/mongodb/mongo-rust-driver/commit/8eac3bc6dc37a6d7667ed6c1a895c224e3ff47e1","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/mongo-rust-driver/commit/a3fe6c84ce6287348b1268f651fdac9fbed66187","label":"github.com/mongodb/mongo-rust-driver/commit/a3fe6c84ce6287348b1268f651fdac9fbed66187","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/mongo-rust-driver","label":"github.com/mongodb/mongo-rust-driver","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-07-02T17:17:50.237Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-01T21:41:03.220Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:39:47.888Z","stale":false,"partial":false}}