Skip to content

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

MediumCVSS 4.9 EPSS 0.62%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
nuget MongoDB.Driver(NuGet) >= 2.11.0, < 2.12.2 2.12.2
nuget MongoDB.Driver(NuGet) = 2.11.0 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.1 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.2 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.3 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.4 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.5 No fix listed
nuget MongoDB.Driver(NuGet) = 2.11.6 No fix listed
nuget MongoDB.Driver(NuGet) = 2.12.0 No fix listed
nuget MongoDB.Driver(NuGet) = 2.12.0-beta1 No fix listed
nuget MongoDB.Driver(NuGet) = 2.12.1 No fix listed
MongoDB C Driver >= 2.12.0, < 2.12.2 2.12.2
MongoDB C Driver = 2.11.0 No fix listed
MongoDB C Driver >= 2.12, <= 2.12.1 No fix listed

References