{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-20331","id":"CVE-2021-20331","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 authent","descriptionLong":"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.","published":"2021-05-13T07:40:11.801Z","updated":"2026-10-24T10:30:39.324774875Z","reserved":"2020-12-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mongodb","metric":{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"mongodb"},"metrics":[{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"mongodb"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"mongodb.com"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["MongoDB Inc. MongoDB C# Driver"],"affectedProducts":[{"vendor":"MongoDB Inc.","product":"MongoDB C# Driver","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"2.12.1","status":"affected","version":"2.12","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"NuGet","name":"mongodb.driver","purl":"pkg:nuget/mongodb.driver","ranges":[">=2.11.0 <2.12.2"],"fixed":["2.12.2"],"advisory":"GHSA-p9rv-qgqw-jx2w"}],"cwes":["CWE-200"],"aliases":["GHSA-p9rv-qgqw-jx2w"],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-3521","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Vendor Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331","tags":["advisory"]},{"url":"https://github.com/mongodb/mongo-csharp-driver/commit/1f1a526e93ed7aa254759704b19f5ee66a3af365","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00623,"epssPercentile":0.50634,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-20331","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20331","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-20331","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p9rv-qgqw-jx2w","ok":true,"note":"GHSA-p9rv-qgqw-jx2w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-20331","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["mongodb"],"critical":[],"attention":null}