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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| NuGet | mongodb.driver | 2.12.2 | GHSA-p9rv-qgqw-jx2w |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://jira.mongodb.org/browse/CSHARP-3521 x_refsource_CONFIRM