# CVE-2021-20332: Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver

Source: https://junglewise.ai/threats/cve-2021-20332-exposure-of-sensitive-information-to-an-unauthorized-actor-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-20332 · Severity: low · CVSS 3.1 · Published 2022-05-24

Exposure of Sensitive Information to an Unauthorized Actor in MongoDB Rust Driver

Technologies: [mongodb (crates.io)](https://junglewise.ai/threats/technologies/crates-io-mongodb). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2021-20332 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-20332 being exploited in the wild.

**How severe is CVE-2021-20332?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** mongodb (crates.io) SEMVER:introduced=1.0.0,fixed=2.0.0-beta.

**Is there a fix for CVE-2021-20332?** Yes. mongodb (crates.io): upgrade to 2.0.0-beta or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-20332?** Check whether you run mongodb (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mongodb (crates.io): upgrade to 2.0.0-beta or later

  ```sh
  cargo update -p mongodb
  ```


## Affected products

- mongodb (crates.io) SEMVER:introduced=1.0.0,fixed=2.0.0-beta

## Identifiers

- CVE-2021-20332
- GHSA-4rjr-3gj2-5crq

## Related threats

- [MongoDB Rust Driver has certificate validation disabled when `tlsInsecure=False` appears in connection string](https://junglewise.ai/threats/cve-2025-11695-mongodb-rust-driver-has-certificate-validation-disabled-when)
- [MongoDB Rust driver may issue unintended commands](https://junglewise.ai/threats/cve-2024-6382-mongodb-rust-driver-may-issue-unintended-commands)
