Medium severity4.2NVD Advisory· Published Aug 2, 2021· Updated Jun 17, 2026
CVE-2021-20332
CVE-2021-20332
Description
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
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mongodbcrates.io | >= 1.0.0, < 2.0.0-beta | 2.0.0-beta |
Affected products
5cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:*+ 2 more
- cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:*range: >=1.0.0,<=1.2.1
- cpe:2.3:a:mongodb:rust_driver:2.0.0:alpha1:*:*:*:mongodb:*:*
- cpe:2.3:a:mongodb:rust_driver:2.0.0:alpha:*:*:*:mongodb:*:*
- Range: 2.0.0-alpha
Patches
Vulnerability mechanics
References
4- jira.mongodb.org/browse/RUST-591nvdPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-4rjr-3gj2-5crqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-20332ghsaADVISORY
- github.com/mongodb/mongo-rust-driver/commit/9e8782b1bb1104e5399c073b553719c262d4463cghsaWEB
News mentions
0No linked articles in our index yet.