CVE-2021-20331
published medium CVSS 3.1 · 4.2MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | MongoDB C# Driver | 2.12 through 2.12.1 (affected · custom)Default: unaffected | mongodb · cna |
| mongodb | c\#_driver | 2.12 through 2.12.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-200 CWE-200 Information Exposure
References
1Provider assertions
3mongodb · cna
MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3990c2f75047c7fd34777b042b9b91c9ae72d26a41521fc424883dc6ac95be3c
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record