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

Medium 6.4 Published Updated

Adversarial input can cause the MongoDB Rust Driver to issue unintended commands, leading to unexpected data modification.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-6382?

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.

Official 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

Weakness: CWE-228

Which versions are affected by CVE-2024-6382?

2 open source packages ship an affected version, including mongodb. It affects 1 product.

PackageAffectedFixed in
mongodb crates.ioFrom 2.0.02.8.2
mongodb crates.ioFrom 2.0.02.8.2

Products include Mongodb Rust Driver.

How do I fix CVE-2024-6382?

Upgrade mongodb to 2.8.2 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-6382 being exploited?

There is no known exploitation of CVE-2024-6382 in the wild and no public exploit code.

Sources

Also known as GHSA-32jf-h775-g29h.

Is CVE-2024-6382 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free