CVE-2021-20332: MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application
Vulnerability summary
CVE-2021-20332 is a medium (CVSS 4.4) vulnerability in mongodb inc mongodb rust driver. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.4% of scored vulnerabilities.
Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-08-2021PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA4.2MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · Crates.ioEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Crates.Io1 product
- mongodb≥ 1.0.0, < 2.0.0-beta
Mongodb1 product
- rust driver≥ 1.0.0, ≤ 1.2.1 | 2.0.0:alpha | 2.0.0:alpha1
Mongodb inc1 product
- mongodb rust driver2.0.0-alpha | 2.0.0-alpha1 | ≥ 1.0.0, ≤ 1.2.1
3 vendors · 3 products