Skip to main content
← All vulnerabilities
CVE-2021-20331GHSA-P9RV-QGQW-JX2W

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.12.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • MongoDB Inc. MongoDB C# Driver

    From 2.12 · through 2.12.1

  • mongodb.driverNuGet

    From 2.11.0 · fixed in 2.12.2

References 1

jira.mongodb.org