CVE-2021-20332
MEDIUM 4.4CVSS 3.1Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver
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
- Published
- 2 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-4rjr-3gj2-5crq
- Sources
- NVDJSONOSV GHSA-4rjr-3gj2-5crqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | rust_drivercpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:* |
>= 1.0.0, <= 1.2.1 | |
| NVD | mongodb | rust_drivercpe:2.3:a:mongodb:rust_driver:2.0.0:alpha:*:*:*:mongodb:*:* |
= 2.0.0 | |
| NVD | mongodb | rust_drivercpe:2.3:a:mongodb:rust_driver:2.0.0:alpha1:*:*:*:mongodb:*:* |
= 2.0.0 | |
| OSV | crates.io | mongodb | >= 1.0.0, < 2.0.0-beta | 2.0.0-beta |
References
- https://jira.mongodb.org/browse/RUST-591 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20332 · ADVISORY
- https://github.com/mongodb/mongo-rust-driver/commit/9e8782b1bb1104e5399c073b553719c262d4463c · WEB
- https://github.com/mongodb/mongo-rust-driver · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 2 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 May 2022)