Vulnerability · Published Aug 29, 2023 · Assigned by mongodb

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

Medium 4.2

In plain English

A medium-severity information exposure in MongoDB C Driver from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.6%top 48.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12mongo-c-driver1.18.0-1DEBIAN-CVE-2021-32050
Debian:13mongo-c-driver1.18.0-1DEBIAN-CVE-2021-32050
Debian:14mongo-c-driver1.18.0-1DEBIAN-CVE-2021-32050
Debian:12node-mongodbno fix listedDEBIAN-CVE-2021-32050
Debian:12php-mongodb1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Debian:13php-mongodb1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Debian:14php-mongodb1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Packagistmongodb/mongodb1.9.2GHSA-vxvm-qww3-2fh7
Ubuntu:22.04:LTSnode-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:24.04:LTSnode-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:25.10node-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:22.04:LTSphp-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:24.04:LTSphp-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:25.10php-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:26.04:LTSphp-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu:26.10php-mongodbno fix listedUBUNTU-CVE-2021-32050
npmmongodb3.6.10GHSA-vxvm-qww3-2fh7
npmmongodb4.17.0GHSA-vxvm-qww3-2fh7
npmmongodb5.8.0GHSA-vxvm-qww3-2fh7

Affected products (as reported)

VendorProductVersions
MongoDB Inc MongoDB C Driver 1.0.0 – before 1.17.7
MongoDB Inc MongoDB C++ Driver 3.0.0 – before 3.7.0
MongoDB Inc MongoDB PHP Driver 1.0.0 – before 1.9.2
MongoDB Inc MongoDB Swift Driver 1.0.0 – before 1.1.1
MongoDB Inc MongoDB Node.js Driver 3.6 – before 3.6.104.0 – before 4.17.05.0 – before 5.8.0

Weakness: CWE-200 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

References