CVE-2021-20331
MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application
- State
- Published
- Severity
- 4.2 Medium
- Published
- May 13, 2021
- Updated
- Sep 16, 2024
- Reserved
- Dec 17, 2020
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.2 Medium | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N | mongodb |
Weaknesses
- CWE-200 Information Exposure
Affected Products
| Product | Versions |
|---|---|
MongoDB C# DriverMongoDB Inc. |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.