Skip to content

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

MediumCVSS 4.4 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io mongodb(crates.io) >= 1.0.0, < 2.0.0-beta; >= 1.0.0, <= 2.0.0-alpha1 2.0.0-beta Fixed
MongoDB Rust Driver = 2.0.0-alpha; = 2.0.0-alpha1; >= 1.0.0, <= 1.2.1 after 1.2.1 Fixed
MongoDB Rust Driver = 2.0.0-alpha; = 2.0.0-alpha1; >= 1.0.0, <= 1.2.1; >= 1.00.0, <= 1.2.1 after 1.2.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io mongodb(crates.io) >= 1.0.0, <= 2.0.0-alpha1 No fix listed
crates.io mongodb(crates.io) >= 1.0.0, < 2.0.0-beta 2.0.0-beta
MongoDB Rust Driver >= 1.0.0, <= 1.2.1 No fix listed
MongoDB Rust Driver = 2.0.0-alpha No fix listed
MongoDB Rust Driver = 2.0.0-alpha1 No fix listed
MongoDB Rust Driver >= 1.00.0, <= 1.2.1 No fix listed

References