CVE-2021-20332
published medium CVSS 3.1 · 4.2MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | MongoDB Rust Driver2.0.0-alpha · 2.0.0-alpha1 · 1.0.0 through 1.2.1 · Other versions: unaffected | Affected | Not stated | mongodb |
| mongodb | — | rust_driver2.0.0-alpha · 2.0.0-alpha1 · 1.00.0 through 1.2.1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | MongoDB Rust Driver | 2.0.0-alpha (affected)2.0.0-alpha1 (affected)1.0.0 through 1.2.1 (affected · custom)Default: unaffected | mongodb · cna |
| mongodb | rust_driver | 2.0.0-alpha (affected)2.0.0-alpha1 (affected)1.00.0 through 1.2.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-200 CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
1Provider assertions
3mongodb · cna
MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5374052424d5bea8ce08a488fa00dc7e6d69618cc5e0ce5a1289f978479714f9
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record