{"api_version":"1","generated_at":"2026-07-23T23:40:31+00:00","cve":"CVE-2021-20331","urls":{"html":"https://cve.report/CVE-2021-20331","api":"https://cve.report/api/cve/CVE-2021-20331.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20331","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331"},"summary":{"title":"CVE-2021-20331","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 2.12 <= 2.12.1.","state":"PUBLIC","assigner":"cna@mongodb.com","published_at":"2021-05-13 08:15:00","updated_at":"2024-01-23 17:15:00"},"problem_types":["CWE-200"],"metrics":[],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","name":"https://jira.mongodb.org/browse/CSHARP-3521","refsource":"CONFIRM","tags":[],"title":"[CSHARP-3521] Security sensitive commands are not redacted in command started events - MongoDB Jira","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20331","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Citrix Systems, Inc.","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"20331","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c\\#_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20331","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c\\#_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"mongodb","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20331","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c\\#_driver","cpe6":"2.11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20331","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"c\\#_driver","cpe6":"2.11.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"mongodb","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-20331","qid":"996400","title":"DotNet (Nuget) Security Update for mongodb.driver (GHSA-p9rv-qgqw-jx2w)"}]},"source_records":{"cve_program":{"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"}},"nvd":{"publishedDate":"2021-05-13 08:15:00","lastModifiedDate":"2024-01-23 17:15:00","problem_types":["CWE-200"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mongodb:c\\#_driver:*:*:*:*:*:mongodb:*:*","versionStartIncluding":"2.12.0","versionEndExcluding":"2.12.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mongodb:c\\#_driver:2.11.0:-:*:*:*:mongodb:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"20331","Ordinal":"194375","Title":"CVE-2021-20331","CVE":"CVE-2021-20331","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"20331","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"20331","Ordinal":"2","NoteData":"2021-05-13","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"20331","Ordinal":"3","NoteData":"2021-05-13","Type":"Other","Title":"Modified"}]}}}