{"id":"CVE-2021-20331","published":"2021-05-13T07:40:11Z","modified":"2024-09-16T22:25:28Z","title":"MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an…","vendor":"MongoDB Inc.","product":"MongoDB C# Driver","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00623,"percentile":0.50827,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":10.17},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc.","product":"MongoDB C# Driver","versions":[">= 2.12, <= 2.12.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-01-23T20:28:24.561425Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"mongodb.driver","vulnerableRanges":[">=2.11.0, <2.12.2"],"patched":["2.12.2"],"from":["GHSA-p9rv-qgqw-jx2w"],"provenance":"source"}],"summary":{"text":"The MongoDB C# Driver (v2.12 through 2.12.1) can publish events containing authentication-related data, such as for the saslStart, saslContinue, isMaster, createUser, and updateUser commands, to an application-configured command listener. An attacker who can read what that listener records, for example through a log file, can obtain this sensitive data, but only if the application has enabled the non-default command listener feature and the attacker has local access with high privileges plus a user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:01Z"},"euvd":{"id":"EUVD-2022-4730","exploited":false,"provenance":"source"}}