{"id":"GHSA-p9rv-qgqw-jx2w","summary":"MongoDB C# Driver Risk of Exposing Authentication Data via Command Listener","details":"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 \u003c= 2.12.1.","aliases":["CVE-2021-20331"],"modified":"2024-02-16T08:03:22.491236Z","published":"2022-05-24T19:02:24Z","database_specific":{"github_reviewed_at":"2023-12-20T20:26:56Z","nvd_published_at":"2021-05-13T08:15:00Z","cwe_ids":["CWE-200"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331"},{"type":"WEB","url":"https://github.com/mongodb/mongo-csharp-driver/commit/1f1a526e93ed7aa254759704b19f5ee66a3af365"},{"type":"WEB","url":"https://jira.mongodb.org/browse/CSHARP-3521"}],"affected":[{"package":{"name":"mongodb.driver","ecosystem":"NuGet","purl":"pkg:nuget/mongodb.driver"},"ranges":[{"type":"ECOSYSTEM","events":[{"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-p9rv-qgqw-jx2w/GHSA-p9rv-qgqw-jx2w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"}]}