Live threats

All CVEs / Mongodb

CVE-2021-20332Mongodb Rust Driver

Medium 4.4

Priority
26
CVSS 3.1
4.4
EPSS
0.3%
probability of exploitation in 30 days · percentile 25
Auth required
Yes
Published
Aug 2, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

What happens

Specific MongoDB Rust Driver versions can include credentials used by the connection pool to authenticate connections in the monitoring event that is emitted when the pool is created. The user's logging infrastructure could then potentially ingest these events and unexpectedly leak the credentials. Note that such monitoring is not enabled by default. This issue affects MongoDB Rust Driver version 2.0.0-alpha, MongoDB Rust Driver version 2.0.0-alpha1 and MongoDB Rust Driver version 1.0.0 through to and including 1.2.1

Original NVD text.

What to do

  1. Apply the vendor's security update for Rust Driver.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io mongodb ≥ 1.0.0 < 2.0.0-beta 2.0.0-beta cargo update -p mongodb --precise 2.0.0-beta

Per OSV / GitHub Advisories (GHSA-4rjr-3gj2-5crq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongodbrust_driver≥ 1.0.0 ≤ 1.2.1
mongodbrust_driver2.0.0
mongodbrust_driver2.0.0

Official sources

References

Links published by the sources. Open them with care.