CVE-2021-20331

Source
https://cve.org/CVERecord?id=CVE-2021-20331
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20331.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-20331
Aliases
Published
2021-05-13T08:15:06.557Z
Modified
2026-07-08T21:26:51.485478Z
Severity
  • 4.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
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 v2.12 versions prior to and including 2.12.1.

References

Affected packages

Git / github.com/mongodb/mongo-csharp-driver

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/mongo-csharp-driver
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:mongodb:c\\#_driver:*:*:*:*:*:mongodb:*:*",
        "cpe:2.3:a:mongodb:c\\#_driver:2.11.0:-:*:*:*:mongodb:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "2.12.0"
        },
        {
            "fixed": "2.12.2"
        },
        {
            "introduced": "2.11.0-NA"
        },
        {
            "last_affected": "2.11.0-NA"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ]
}

Affected versions

2.*
2.11.0-NA
v2.*
v2.11.0
v2.12.0
v2.12.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20331.json"