# CVE-2021-20332: MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-08-02 · Modified: 2024-09-17
- Aliases: GHSA-4rjr-3gj2-5crq
- Record: https://cvemate.com/vulnerability/CVE-2021-20332 · JSON: https://cvemate.com/vulnerability/CVE-2021-20332/json

## Description

```text
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
```

## Signals

- CVSS: 4.4 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.308%, percentile 25.449%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io mongodb (Crates.Io): ≥ 1.0.0, \< 2.0.0-beta
- mongodb inc mongodb rust driver: 2.0.0-alpha \| 2.0.0-alpha1 \| ≥ 1.0.0, ≤ 1.2.1
- mongodb rust driver: ≥ 1.0.0, ≤ 1.2.1 \| 2.0.0:alpha \| 2.0.0:alpha1

## References

- <https://jira.mongodb.org/browse/RUST-591>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20332>
- <https://github.com/mongodb/mongo-rust-driver/commit/9e8782b1bb1104e5399c073b553719c262d4463c>
- <https://github.com/mongodb/mongo-rust-driver>

---

Data as of 2026-12-05T05:32:51.767Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
