{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-20331","published":"2021-05-13T08:15:06.557000Z","last_modified":"2026-06-17T03:33:41.333000Z","status":"Modified","cvss":{"version":"3.1","score":4.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-200"],"cpes":[{"criteria":"cpe:2.3:a:mongodb:c\\#_driver:*:*:*:*:*:mongodb:*:*","part":"a","vendor":"mongodb","product":"c#_driver","version_start_including":"2.12.0","version_end_excluding":"2.12.2"},{"criteria":"cpe:2.3:a:mongodb:c\\#_driver:2.11.0:-:*:*:*:mongodb:*:*","part":"a","vendor":"mongodb","product":"c#_driver","version":"2.11.0"}],"cpes_truncated":false,"vendors":["mongodb"],"products":["mongodb/c-_driver"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00623,"percentile":0.4429,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-p9rv-qgqw-jx2w","ecosystem":"NuGet","name":"mongodb.driver","purl":"pkg:nuget/mongodb.driver","ranges":[{"introduced":"2.11.0","fixed":"2.12.2"}],"versions":["2.11.0","2.11.1","2.11.2","2.11.3","2.11.4","2.11.5","2.11.6","2.12.0","2.12.0-beta1","2.12.1"],"versions_truncated":false}],"severity":"medium","priority_score":29,"links":{"html_es":"/es/cve/CVE-2021-20331/","html_en":"/en/cve/CVE-2021-20331/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20331"},"untrusted":{"vendor_name":"Mongodb","product_name":"C# Driver","desc_en":"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":[{"untrusted_vendor":"MongoDB Inc.","untrusted_product":"MongoDB C# Driver","versions":[]},{"untrusted_vendor":"mongodb","untrusted_product":"c\\#_driver","versions":[]}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","tags":["Issue Tracking","Patch","Vendor Advisory"]}]}}