Advisory

GHSA-p9rv-qgqw-jx2w

Also known as: CVE-2021-20331

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 <= 2.12.1.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-24 19:02 UTC
Modified
2024-02-16 08:03 UTC

Affected packages and fixes

mongodb.driver

NuGet · All systems

Affected

  • introduced 2.11.0, fixed 2.12.2 (ecosystem)

Fixed versions

2.12.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences