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

Read the record on cve.org

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

CVSSScoreVectorSource
3.14.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:Nmongodb

Weaknesses

Affected Products

ProductVersions
MongoDB C# DriverMongoDB Inc.
  • 2.12 through 2.12.1Affected

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.