Vulnerability · Published May 13, 2021 · Assigned by mongodb

CVE-2021-20331MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application

Medium 4.2

In plain English

A medium-severity information exposure in MongoDB C# Driver from MongoDB Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.6%top 49.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 v2.12 versions prior to and including 2.12.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
NuGetmongodb.driver2.12.2GHSA-p9rv-qgqw-jx2w

Affected products (as reported)

VendorProductVersions
MongoDB Inc. MongoDB C# Driver 2.12 – through 2.12.1

Weakness: CWE-200 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

References