CVE-2021-20332Mongodb Rust Driver
Medium 4.4
Follow: this CVE · Mongodb · Mongodb Rust Driver We alert you by email or Slack (account required).
- 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
What to do
- Apply the vendor's security update for Rust Driver.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | rust_driver | ≥ 1.0.0 ≤ 1.2.1 |
| mongodb | rust_driver | 2.0.0 |
| mongodb | rust_driver | 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- jira.mongodb.org Patch Vendor Advisory