Advisory

GHSA-32jf-h775-g29h

Also known as: CVE-2024-6382

Summary

MongoDB Rust driver may issue unintended commands

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-07-02 21:32 UTC
Modified
2025-10-02 21:57 UTC

Affected packages and fixes

mongodb

crates.io · All systems

Affected

  • introduced 2.0.0, fixed 2.8.2 (semver)

Fixed versions

2.8.2

Fix

  • Fixed version 2.8.2
    cargo update -p mongodb --precise 2.8.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences