{"id":"CVE-2021-20331","state":"PUBLISHED","title":"MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application","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.","publishedAt":"2021-05-13T07:40:11.801Z","updatedAt":"2024-09-16T22:25:28.232Z","severity":{"score":4.2,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","source":"mongodb"},"assigner":"mongodb","products":["MongoDB Inc. MongoDB C# Driver"],"affected":[{"vendor":"MongoDB Inc.","product":"MongoDB C# Driver","defaultStatus":"unaffected","versions":[{"version":"2.12","status":"affected","lessThanOrEqual":"2.12.1","versionType":"custom"}]}],"references":["https://jira.mongodb.org/browse/CSHARP-3521"],"weaknesses":["CWE-200"],"ingestedAt":"2026-10-29T19:47:55.610Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/20xxx/CVE-2021-20331.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-20331","state":"PUBLISHED","datePublished":"2021-05-13T07:40:11.801Z","dateUpdated":"2024-09-16T22:25:28.232Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2020-12-17T00:00:00.000Z"},"containers":{"cna":{"title":"MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application","descriptions":[{"lang":"en","value":"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":[{"vendor":"MongoDB Inc.","product":"MongoDB C# Driver","defaultStatus":"unaffected","versions":[{"version":"2.12","status":"affected","lessThanOrEqual":"2.12.1","versionType":"custom"}]}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.2,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","description":"CWE-200 Information Exposure","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2024-01-23T16:09:46.051Z"},"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"Citrix Systems, Inc."}],"datePublic":"2021-05-23T23:00:00.000Z","source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cna@mongodb.com","DATE_PUBLIC":"2021-05-24T22:00:00.000Z","ID":"CVE-2021-20331","STATE":"PUBLIC","TITLE":"MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"MongoDB C# Driver","version":{"version_data":[{"version_affected":"<=","version_name":"2.12","version_value":"2.12.1"}]}}]},"vendor_name":"MongoDB Inc."}]}},"credit":[{"lang":"eng","value":"Citrix Systems, Inc."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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 2.12 <= 2.12.1."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.2,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-200 Information Exposure"}]}]},"references":{"reference_data":[{"name":"https://jira.mongodb.org/browse/CSHARP-3521","refsource":"CONFIRM","url":"https://jira.mongodb.org/browse/CSHARP-3521"}]},"source":{"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:37:23.787Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mongodb","product":"c\\#_driver","defaultStatus":"unknown","versions":[{"version":"2.12","status":"affected","lessThanOrEqual":"2.12.1","versionType":"custom"}],"cpes":["cpe:2.3:a:mongodb:c\\#_driver:*:*:*:*:*:mongodb:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-01-23T20:28:24.561425Z","id":"CVE-2021-20331","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-15T17:12:36.580Z"}}]}}}