Information disclosure in MongoDB Rust Driver
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-200.
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB Rust Driver | 2.0.0-alpha; 2.0.0-alpha1; 1.0.0 – 1.2.1 | — | No fix listed | CNA |
| — | mongodb (crates.io) | 1.0.0 to before 2.0.0-beta | 2.0.0-beta | Patch available | GHSA-4rjr-3gj2-5crq |
- MongoDB Rust Driver VendorMongoDB Affected 2.0.0-alpha; 2.0.0-alpha1; 1.0.0 – 1.2.1 Fixed in — No fix listed CNA
- mongodb (crates.io) Vendor— Affected 1.0.0 to before 2.0.0-beta Fixed in 2.0.0-beta Patch available GHSA-4rjr-3gj2-5crq
CPE configurations NVD · 3
Remediation
- Fix · GHSA-4rjr-3gj2-5crq mongodb (crates.io) Fixed in 2.0.0-beta Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-20332
- 2026-10-03 Alias added: GHSA-4rjr-3gj2-5crq
References
More MongoDB Rust Driver vulnerabilities
- TI-2025-10720 Configuration may unexpectedly disable certificate validation CVSS 3.1HIGH 8.0
- TI-2024-05924 Adversarial unsanitized input may cause MongoDB Rust Driver to issue unintended commands. CVSS 3.1HIGH 7.5
- TI-2026-56247 Cross-database write redirection via unvalidated dotted database name in bulk write namespaces CVSS 4.0HIGH 7.1
- TI-2026-60049 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust Driver CVSS 4.0MEDIUM 6.1
Sources
- CVE-2021-20332 · CVE Program
- CVE-2021-20332 · NVD
- FIRST EPSS
- GHSA-4rjr-3gj2-5crq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences