CVE-2021-20332 json
MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application
published 5y ago modified 4mo ago also GHSA-4rjr-3gj2-5crq , EUVD-2022-2442
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 23%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- crates.io mongodb 2.0.0-beta
Is CVE-2021-20332 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | mongodb | >=1.0.0, <2.0.0-beta |
2.0.0-beta |
Affected products
- MongoDB Inc. MongoDB Rust Driver
- mongodb rust_driver
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
jira.mongodb.org
/browse/RUST-591
web, patch, vendor-advisory
-
github.com
/mongodb/mongo-rust-driver/commit/9e8782b1bb1104e5399c073b553719c262d4463c
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-20332
advisory
-
github.com
/mongodb/mongo-rust-driver
package
Sources
- CVE List CVE-2021-20332
- GitHub Advisory GHSA-4rjr-3gj2-5crq
- NVD CVE-2021-20332
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.