GitHub Advisoryadvisory · NuGet

GHSA-p9rv-qgqw-jx2w MongoDB C# Driver Risk of Exposing Authentication Data via Command Listener

MEDIUM Published 2022-05-24 Modified 2024-01-23 Official page ↗
Aliases
CVE-2021-20331
Ecosystem
NuGet
Packages
mongodb.driver
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-200
Reviewed
2023-12-20

Affected packages

• NuGet mongodb.driver: >= 2.11.0, < 2.12.2 → fixed in 2.12.2

Description

Specific versions of the MongoDB C# Driver may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when commands such as "saslStart", "saslContinue", "isMaster", "createUser", and "updateUser" are executed. Without due care, an application may inadvertently expose this authenticated-related information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default). This issue affects the MongoDB C# Driver 2.12 <= 2.12.1.

Related

Alias · CVE (1)

  • CVE-2021-20331 Specific versions of the MongoDB C# Driver may erroneously publish events containing authentication-related data to a command listener… vulnerability

Weakness · CWE (1)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness

References