CVE-2021-32050

Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application

Description

Some MongoDB Drivers 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 specific authentication-related commands are executed. Without due care, an application may inadvertently expose this sensitive 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 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).

Categories

4.2
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.06%
Vendor Advisory mongodb.org Vendor Advisory mongodb.org Vendor Advisory mongodb.org Vendor Advisory mongodb.org
Affected: MongoDB Inc MongoDB C Driver
Affected: MongoDB Inc MongoDB C++ Driver
Affected: MongoDB Inc MongoDB PHP Driver
Affected: MongoDB Inc MongoDB Swift Driver
Affected: MongoDB Inc MongoDB Node.js Driver
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-32050?
CVE-2021-32050 has been scored as a medium severity vulnerability.
How to fix CVE-2021-32050?
To fix CVE-2021-32050, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-32050 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2021-32050 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-32050?
CVE-2021-32050 affects MongoDB Inc MongoDB C Driver, MongoDB Inc MongoDB C++ Driver, MongoDB Inc MongoDB PHP Driver, MongoDB Inc MongoDB Swift Driver, MongoDB Inc MongoDB Node.js Driver.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.