CVE-2021-20332
JSON

4.2medium

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

Severity
4.2medium CVSS:3.1 by mongodb
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
GHSA-4rjr-3gj2-5crq

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

Affected

Product or packageVersionsReported by
MongoDB Inc. MongoDB Rust Driver2.0.0-alpha, 2.0.0-alpha1, from 1.0.0 up to 1.2.1CVE List
mongodb rust_driver2.0.0-alpha, 2.0.0-alpha1, from 1.00.0 up to 1.2.1, from 1.0.0 up to 1.2.1, 2.0.0CVE List, NVD
mongodb (crates.io)from 1.0.0 before 2.0.0-betaGitHub Advisory Database

All scores

mongodb4.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
NVD2.1low CVSS:2.0AV:L/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

GitHub Advisory Database

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.

NVD (es)

Unas versiones específicas de MongoDB Rust Driver pueden incluir credenciales usadas por el pool de conexiones para autenticar conexiones en el evento de monitorización que es emitido cuando el pool es creado. La infraestructura de registro del usuario podría entonces ingerir potencialmente estos eventos y filtrar inesperadamente las credenciales. Ten cuenta que esta monitorización no está habilitada por defecto

References

Sources

SourceRecordLicence
CVE ListCVE-2021-20332 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-4rjr-3gj2-5crq changed 2023-11-08CC-BY-4.0
NVDCVE-2021-20332 changed 2026-06-17Public domain